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, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Hypertension occurs when blood pressure is too high.
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, 30.10.2020 04:30
question
Biology, 30.10.2020 04:30
question
History, 30.10.2020 04:30
question
Chemistry, 30.10.2020 04:30
question
Mathematics, 30.10.2020 04:30
question
Mathematics, 30.10.2020 04:30
question
Mathematics, 30.10.2020 04:30
question
Mathematics, 30.10.2020 04:30
Questions on the website: 13722360