subject

2. Using the top-down method, please describe an algorithm for a program that calculates the cost of a car rental according to the following price schedule: Rental Period Type of Car 1-6 days 7-27 days 28-60 days Class B $27 per day Class C $34 per day $162 for 7 days, +$25 for each additional day $204 for 7 days, +S31 for each additional day, $276 for 7 days, +S43 for each additional day $662 for 28 days, +$23 for each additional day $810 for 28 days, +$28 for each additional day S1136 for 28 days, +538 for each additional day Class D Class D cannot be rented for less than 7 days 7 The algorithm asks the user to enter the rental period and type of car. The algorithm should display the appropriate cost. If a period longer than 60 days is entered, a message "Rental is not available for more than 60 days” should be displayed. If a rental period of less than 6 days is entered for Class D, a message "Class D cars cannot be rented for less than 6 days" should be displayed Create a flowchart for your algorithm.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
You know the right answer?
2. Using the top-down method, please describe an algorithm for a program that calculates the cost of...
Questions
Questions on the website: 13722362