Question: TEMENTS 29. Write a program in a script file that calculates the cost of renting a car according to the following price schedule Sedan SUV

 TEMENTS 29. Write a program in a script file that calculates

TEMENTS 29. Write a program in a script file that calculates the cost of renting a car according to the following price schedule Sedan SUV TATEMENT Duration of rent Daily rate Free miles (per day! Cost of additional Daily Free miles (per Cost of additional mile mile rate day) ND NESTED MENTS 1-6 days 7-29 days 30 or more days $79 $69 $59 100 $0.69 $0.59 $0.49 $84 80 $74 100 $64 120 $0.74 $0 64 $0.54 120 ntinue TLAB The program asks the user to enter the type of car (sedan or SUV), the number of days, and the number of miles driven. The program then displays the cost (rounded to cents) for the rent. Run the program three times for the following cases (a) Sedan, 10 days, 769 miles. (b) SUV, 32 days, 4.056 miles (c) Sedan, 3 days, 511 miles

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!