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
- CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZENIF YES, THEN GIVE 20% OFF IF HE IS BOTH PWD AND SENIOR CITIZEN, GIVE 20% ONLY ASK IF HE HAS A MEMBERSHIP CARD. IF YES, GIVE ANOTHER 3% OFFWhen you use a mortgage to purchase a home, the lending institution effectively owns the home. You buy back part ownership in the home with each monthly payment. The part you have bought back is your equity in the home. If the mortgage amount is P dollars, the monthly interest rate is r as a decimal, and the term of the mortgage is t months, then your equity after k payments is E(k) = P((1 + r)k − 1) (1 + r)t − 1 dollars. In this exercise, assume that the mortgage amount is $200,000, the APR is 6% so r = .06/12 and the term of the loan is 30 years (360 months). (a) Find a formula for the equity. (b) Make a graph of the equity over 360 months, the term of the loan. (c) Does the graph show that you have half-ownership in the home halfway through the term of the mortgage? Halfway through the term of the mortgage corresponds to k1 = _______ payments. From the graph, we see that E(k1) is ________ half of the mortgage amount, so we _______ have half-ownership in the home…A video player plays a game in which the character competes in a hurdle race. Hurdles are of varying heights, and the characters have a maximum height they can jump. There is a magic potion they can take that will increase their maximum jump height by unit for each dose. How many doses of the potion must the character take to be able to jump all of the hurdles. If the character can already clear all of the hurdles, return . Example The character can jump unit high initially and must take doses of potion to be able to jump all of the hurdles. Function Description Complete the hurdleRace function in the editor below. hurdleRace has the following parameter(s): int k: the height the character can jump naturally int height[n]: the heights of each hurdle Returns int: the minimum number of doses required, always or more Input Format The first line contains two space-separated integers and , the number of hurdles and the maximum height the character can jump naturally.The…
- Write a program that will figure out the required change for a purchase. Start by asking the user for the price of the product and the amount paid. (We are expecting that the user will give a larger value for the amount paid.) Read in each of these values as a double. Report back to the user the number of each denomination of change due. You are not just telling the user the amount of money he gets back. Hint: Working with integers is much easier. The modulo operator is your friend for this assignment. Also, note that pennies can be tricky due to the poor real number to binary conversions. (Remember that 1.00 could actually be stored as 0.9999999999997.) Do not include five-dollar bills, ten-dollar bills, etc. Only show coins and one-dollar bill amounts. Be sure to test multiple values. There is a test case below. Your program should run the test case exactly as it appears below, and should work on any other case in general. Output Example (User input is marked with >>>.…plz solve it asap ????????: Write a program for a game that consists of two players. The rule of the game is that player 1 inputs a random number from 1-100. Player 2 will input 5 numbers. If the summation of those numbers is equal to the number OR less than or greater than the number by 3 (+3 or -3), then player 2 wins. Otherwise, player 1 wins. Test Case 1 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 7 Output Player 2 wins Explanation: The summation of 10,10,20,5 and 7 is 52 which is greater than 50 by 2. According to the rule, player 2 wins. Test Case 2 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 1 Output Player 1 wins Explanation: The summation of 10,10,20,5 and 1 is 46 which is less than 50 and also doesn’t…The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.
- 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.)Write a program that calculates how much money you’ll end up with if you invest an amount of money at a fixed interest rate, compounded yearly. Have the user furnish the initial amount, the number of years, and the yearly interest rate in percent. Some interaction with the program might look like this: Enter initial amount: 3000 Enter number of years: 10 Enter interest rate (percent per year): 5.5 At the end of 10 years, you will have 5124.43 dollars.****Microsoft Visual Studios***** Write a program that prompts the user for a number of decimal places between 1 and 10 and returns the number of terms in the infinite series needed to reach that level of precision (the estimated e is equal to the actual e to the 5th decimal place for example). Your program does not need to run continuously.
- Write a program that prompts the user to enter the distance todrive, the fuel efficiency of the car in miles per gallon, and the price per gallonthen displays the cost of the trip.A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consume in a day. Then, she calculates the number of calories that result from the fat using the following formula: Calories from fat = Fat grams × 9Next, she calculates the number of calories that result from the carbohydrates using the following formula: Calories from carbs = Carbs grams × 4Create an application that will make these calculations. In the application, you should have the following methods:• FatCalories–This method should accept a number of fat grams as an argument and return the number of calories from that amount of fat.• CarbCalories–This method should accept a number of carbohydrate grams as an argument and return the number of calories from that amount of carbohydrates.Write a program that checks to see if the user won the lottery. Assume the winning lottery numbers are 8, 13, 27, 53, and 54. Ask the user for five numbers and compare those numbers to the winning numbers to determine how many matches the user got. In a lottery, the order of the numbers doesn't matter. Test Case 6 Check your lottery numbers here!\nEnter number 1:\n13ENTEREnter number 2:\n53ENTEREnter number 3:\n54ENTEREnter number 4:\n27ENTEREnter number 5:\n8ENTERAll set. The winning numbers were: 8 13 27 53 54\nWOW! Grand prize winner!\n Test Case 7 Check your lottery numbers here!\nEnter number 1:\n13ENTEREnter number 2:\n53ENTEREnter number 3:\n540ENTERMust be between 1 and 99\nEnter number 3:\n54ENTEREnter number 4:\n27ENTEREnter number 5:\n89ENTERAll set. The winning numbers were: 8 13 27 53 54\nWell, you didn't win. You got 4 matching number(s)\n