29. Write a program in a script file that calculates the cost of renting a car according...
Question:
29. Write a program in a script file that calculates the cost of renting a car according to the following price schedule:
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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: