A large book box holds 80 lbs, a medium box hold 50 lbs. and a small holds 30 lbs. The average book is 10 pounds. Have the user enter a number of books and determine the most efficient packing, meaning the number of each size box if books are packed will to fill the large box first. It they do not fill the larger box, then they must be packed in the next size down. In other words, you are to fill the larger boxes before using a smaller box, but you can't leave empty space in the larger boxes, only in the smallest box used. Report the number of each box used
Q: What factors influence network communication performance?
A: Given: In terms of network performance, reaction time refers to how soon a message can be delivered…
Q: Following the development and testing of individual modules, they must be combined and tested as a…
A: Introduction: Software development alludes to PC programming, which is the most common way of…
Q: Synaptic weights are w,-1.2, w, -0.4, w, 0.7. Find the given input above (or) below the line ?
A: The answer is
Q: Write a scenario that could be used to help design tests for the wilderness weather station system.
A:
Q: Consider a memory system with cache access time of 0.1 us and memory access time (time needed to…
A:
Q: M07.
A: We are going to write a pearl program which will concatenate 3 strings, string1 then one space and…
Q: (b) Consider a system with multiple level memory as in Table Q520. Table Q52 (i) (ii) Component…
A: Please refer below for your reference: The average Memory access time for this system is given as :…
Q: Apex Assignment: Create a apex class called addition and then create a method to add the 2 integer…
A: Apex is a program language which is used to create the salesforce Backend and mostly Salesforce…
Q: Suppose TCP operates over a 1-Gbps link. (a) Assuming TCP could utilize the full bandwidth…
A:
Q: Network maintenance is an important task in organizations today who entirely rely on their network…
A: Network maintenance is fundamentally what you need to do in the third party maintenance (TM) sector…
Q: Explain why a software system that is used in a real- world environment must change or become…
A:
Q: 22.What is the efficiency class of the following algorithm? line no. 1 ALGORITHM Q22 (n) 2 begin 1=0…
A: Answer The worst and average case resources used by the algorithm are taken into account to…
Q: Define a function generate_new_string that takes an integer times and a string string and returns a…
A: Answer: I am using python language. Since no language is asked in the problem
Q: b. bits for host c. subnet mask d 1st 2nd yth subnet addresses (where y is the requested num
A: The answer is
Q: What Is A Symbol Table?
A: This is the answer to your problem. A very significant data structure that is utilised in a compiler…
Q: Will AI replace software engineers in the next 30 years? why?
A: AI will not replace software engineers in the next 30 years the reason is represented in Step 2.
Q: Give an example of how nonpreemption in the implementation of fair queuing leads to a different…
A:
Q: List out the benefits of biometric authentication?
A: The question is to list out the benefits of biometric authentication.
Q: What do you understand by the term 'stress testing'? Suggest how you might stress test the MHC-PMS.
A:
Q: In Java, please solve and don't copy from wrong answers. I need the JAVA CODE, not an answer like…
A: Here is the java program implementation of above problem. See below step for code.
Q: into two parts: an initial network ID portion that identifies individual networks, followed by a…
A: The answer is
Q: Arrays are data structures consisting of related data items of the same type. Select one: O True O…
A: The correct option for the given question is represented in Step 2.
Q: GSM time slot is 577 s (microseconds) in duration and includes far more tha signal..
A: The answer is
Q: Following the development and testing of individual software modules, they must be combined and…
A: Introduction Software development insinuates PC programming, which is the most widely recognized…
Q: During linear increase, TCP computes an increment to the congestion window as: Increment = MSS x…
A: In this question, In a linear increase, TCP registers an increment to the congestion window as…
Q: Explain why TIME_WAIT is a somewhat more serious problem if the server initiates the close than if…
A: Time wait : TIME_WAIT: The local TCP waits after receiving the closing ACK from the remote TCP to…
Q: Q5) Using RSA algorithm, Assume: p= 7 , q = 13, e = 5, d = 29. c) What is the ciphered text if the…
A: The RSA algorithm:- Two Primes are chosen, p and q. Now, compute the value of n = p *q and z =…
Q: 4. Calculate the perceptron network Synaptic weights are w,-1.2, w, the line ? b W₂ if there are 3…
A: Given: Inputs x1=1.7 x2=5.9 x3=3 Bias: b= -1.8 Weight: w1=1.2 w2=-0.4 w3=0.7
Q: Justify the requirement for a trained project manager to oversee complicated tasks.
A: According to the question the project manager always has power to conduct something explain everyone…
Q: In srings, the name of the array is passed to scanf without the preceding &, like used with…
A: The % is basically used to pass the address of things such as variable number. So in the case of…
Q: Q2. time complexity of the following algorithm for n-1 to n ²³-1 do for je it1 to n² do print j for…
A: The answer is given below.
Q: Let A, B and C be arbitrary logical statements. Consider the following logical statement. I = (A⇒…
A: Truth table denoting the truth and falsity of a compound statements with Boolean expressions or…
Q: To refer to a particular location or element in the array, we first specify the array's name and…
A: The given statement is related to the use of array where an array is a collection of elements having…
Q: Draw Gantt Chart and calculate the average waiting time using the given table ?? Burst Time 10 1 2 1…
A: Below is the following solution of your question:
Q: A cybersecurity expert discovers several users with administrative rights during a security review.…
A: Please refer to the following step for the complete solution to the problem above.
Q: Describe some of the ways the Internet has or has not Describe some of the ways the…
A: Lets see the solution.
Q: In a wide area network, how is routing accomplished?
A: the answer of the question is given below
Q: Where will the network's physical and virtual networking equipment be located?
A: Given: A virtual network is one in which software and wireless technologies are used to link all the…
Q: (a) What is the probability that T(w) = 10100011 ? (b) What is the probability that T(w) = 10101011?…
A: Given : Probability of error = 0.002 Probability of no error = 0.002 w = 10100011
Q: - The step function u (t) is integral of with respect to time t. * Sinusoidal function O Ramp…
A: ANSWER:
Q: Explain why TIME_WAIT is a somewhat more serious problem if the server initiates the close than if…
A: Introduction TIME_WAIT is the most well-known issue in attachment programming client server…
Q: Under what circumstances may coarse-grained timeouts still occur in TCP even when the fast…
A:
Q: Consider the image segment shown in figure 1. Compute length of the shortest- 4, Shortest-8 &…
A: Shortest- 4 path computation from p & q.
Q: 6.24 LAB: Calculate average Complete the CalcAverage() function that has an integer vector parameter…
A: Here I have defined the function named CalcAverage(). In this function, I have extracted the size of…
Q: Nesting is generally more efficient than combining conditions with logical operators for logical…
A: Given that, Nesting is generally more efficient than combining conditions with logical operators for…
Q: As a software project manager in a company that specializes in the development of software for the…
A: Software is a set of programs and instructions that is used to operate system and perform specific…
Q: in the below code, "printf" output the first 19 characters of x. char x[20]; scanf("%10s",x);…
A: C programming is the object oriented programming languages that are used to create the web…
Q: Problem Description: The bird of paradise called the Helipixsal is renowned for its magnificent tail…
A: lengths of feathers looping conditions output Explanation: The code is: def main(): num_feathers =…
Q: Explain why TIME_WAIT is a somewhat more serious problem if the server initiates the close than if…
A: Introduction: Below describe the why TIME. WAIT is a somewhat more serious problem if the server…
Q: Let's suppose there is an organization with two departments with each department requ
A: The answer is
Step by step
Solved in 4 steps
- Correct answer will be upvoted else downvoted. Computer science. After painting the white cells of the board, you want to place the maximum number of dominoes on it, according to the following rules: each domino covers two adjacent cells; each cell is covered by at most one domino; if a domino is placed horizontally (it covers two adjacent cells in one of the rows), it should cover only red cells; if a domino is placed vertically (it covers two adjacent cells in one of the columns), it should cover only blue cells. Let the value of the board be the maximum number of dominoes you can place. Calculate the sum of values of the board over all 2w possible ways to paint it. Since it can be huge, print it modulo 998244353. Input The first line contains two integers n and m (1≤n,m≤3⋅105; nm≤3⋅105) — the number of rows and columns, respectively. Then n lines follow, each line contains a string of m characters. The j-th character in the i-th string is * if the j-th cell in the i-th row…Fat Percentage Calculator One gram of fat has 9 calories. If you know the number of fat grams in a particular food, you can use the following formula to calculate the number of calories that come from fat in that food: Calories from fat = Fat grams × 9 If you know the food’s total calories, you can use the following formula to calculate the percentage of calories from fat: Percentage of calories from fat = Calories from fat ÷ Total calories Create an application that allows the user to enter: • The total number of calories for a food item • The number of fat grams in that food item The application should calculate and display: • The number of calories from fat • The percentage of calories that come from fat Also, the application’s form should have a CheckBox that the user can check if he or she wants to know whether the food is considered low fat. (If the calories from fat are less than 30% of the total calories of the food, the food is considered low fat.) Use the following test data…Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: If a customer purchases no books, he or she earns 0 points If a customer purchases 1 through 5 books, he or she earns 5 points for each book. If a customer purchases 6 through 10 books, he or she earns 10 points for each book. If a customer purchases 11 or more books, he or she earns points equal to 20 points for each book. (Use Python) Use the Design Recipe to write the function customer_rewards which consumes the number of books purchased, and returns the total points. Include a docstring! Write 3 assert_equal statements to test your function.
- When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)Theater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then display a message stating the next show is tomorrow. Upon selecting a row, the program should present the user with a choice of available seats in the row. The user can then either choose a seat and print the ticket (in this case a simple message will suffice) or return to row selection. If a ticket is printed the program should return to row selection. The program terminates when all seats are reserved. Please enter a row: 1 Available seats: A B C D E Which seat, enter Q for none?: B You have booked seat: 1B…Birthday party At Lili's birthday party, there was a game arranged by Jojo as the host. That game is to distribute Y number of candy to X number of people where all the candy tastes sweet except for one last candy which tasted like rotten nuts. Candy distribution will be sequentially starting from position Z and if past the last position then the distribution of candy continues to the first position. Write down the person in which position will get the last candy. Input FormatThe first line of input is T, which is the number of test cases.The second row and the next number of T rows are X, Y, Z.X is the number of people to whom the candy will be distributed.Y is the number of candy available.Z is the starting position of the person to whom the candy will be distributed. Output FormatA string “Case #N: “ and a number representing the position of the person who got the last candy. Constraints? ≤ ? ≤ ???? ≤ ?, ? ≤ ???? ≤ ? ≤ X Sample Input 43 4 13 5 24 2 24 5 2 Sample OutputCase #1: 1Case…
- Birthday party At Lili's birthday party, there was a game arranged by Jojo as the host. That game is to distribute Y number of candy to X number of people where all the candy tastes sweet except for one last candy which tasted like rotten nuts. Candy distribution will be sequentially starting from position Z and if past the last position then the distribution of candy continues to the first position. Write down the person in which position will get the last candy. Input FormatThe first line of input is T, which is the number of test cases.The second row and the next number of T rows are X, Y, Z.X is the number of people to whom the candy will be distributed.Y is the number of candy available.Z is the starting position of the person to whom the candy will be distributed. Output FormatA string “Case #N: “ and a number representing the position of the person who got the last candy. Constraints1 ≤ T ≤ 1001 ≤ X, Y ≤ 1031 ≤ Z ≤ X Sample Input 43 4 13 5 24 2 24 5 2 Sample OutputCase #1: 1Case…Programming Language: Java Direction: Write a program to determine the number of PASSED and FAILED out of 15 inputted names with the corresponding grade. Restrict the inputted grade for each name in the range of 50 to 100, in which 75 is the passing grade. If the inputted grade is not on the range, the program will remind the user of a message for the accepted range for the grade and allows the user to re-enter a grade. NOTE: MUST ADD COMMENTSTheater Ticket System: A small ten-seat theater has contracted you to build software which will reserve tickets. The theater has two rows of five seats each. Each row is referred to by number (1 or 2) and each seat in the row is referred to by letter (A, B, C, D, and E). When started, the program should ask the user for the row they prefer (row selection). If that row has no empty seats then the program should ask the user if they prefer the other row, if no then display a message stating the next show is tomorrow. Upon selecting a row, the program should present the user with a choice of available seats in the row. The user can then either choose a seat and print the ticket (in this case a simple message will suffice) or return to row selection. If a ticket is printed the program should return to row selection. The program terminates when all seats are reserved.
- Broken Cabins Problem Statement: There is an Office consisting of m cabins enumerated from 1 to m. Each cabin is 1 meter long. Sadly, some cabins are broken and need to be repaired. You have an infinitely long repair tape. You want to cut some pieces from the tape and use them to cover all of the broken cabins. To be precise, a piece of tape of integer length t placed at some positions will cover segments 5,5+1-sit-1. You are allowed to cover non-broken cabins, it is also possible that some pieces of tape will overlap. Time is money, so you want to cut at most k continuous pieces of tape to cover all the broken cabins. What is the minimum total length of these pieces? Input Format The first line contains three integers n,m and k(1sns10°, namsloº, Isksn) - the number of broken cabins, the length of the stick and the maximum number of pieces you can use The second line contains n integers bl,b2,bn (Isbism) - the positions of the broken cabins. These integers are given in increasing…QUICK-BASIC64 In a 50-person class, students with grades below 70 are considered unsuccessful. Write an algorithm that calculates students who fail the exam. (Please explain everything the program in details and please check whether the program runs or not by using q- basic64. Thank you so much)Body Mass Index is a simple calculation using a person's height and weight. The formula is BMI = kg/m2 where kg is a person's weight in kilograms and m2 is their height in meters squared. Calculate a persons Body Mass index using their weight in pounds. This means you must first convert pounds to kilograms (kg) then apply the formula above. In converting pounds to kg, 1 pound = 0.453592 kg. So to convert pounds to kg, either multiply the pound value by 0.45359237 or divide by 2.2046226218. Then you must convert their height in inches to meters. The length in meters is equal to the inches multiplied by 0.0254. Write a program that accepts a users height as an integer in inches and their weight in pounds. Convert those inputs to their metric equivalents outlined above and determine their body mass index. Display what the conversions from and to their metric equivalents are. Display the body mass index and the category it belongs to.