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, 21.06.2019 16:00
Write a loop that prints each country's population in country_pop. sample output for the given program with input 'china: 1365830000,india: 1247220000,united states: 318463000,indonesia: 252164800': united states has 318463000 people. india has 1247220000 people. indonesia has 252164800 people. china has 1365830000 people.
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
This is not a factor that you should use to determine the content of your presentation. your audience your goals your purpose your technology
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
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
question
Mathematics, 21.04.2021 23:10
question
Mathematics, 21.04.2021 23:10
question
Mathematics, 21.04.2021 23:10
question
Spanish, 21.04.2021 23:10
question
Mathematics, 21.04.2021 23:10
question
Geography, 21.04.2021 23:10