Question: Python program that will compute the car rental prices. The program takes the input of days, selection of VIP membership, and optional additions. The program
Python program that will compute the car rental prices.
The program takes the input of days, selection of VIP membership, and optional additions. The program calculates and displays the rental price, discount and final price of the car rental.
The basic price of car rental is $50 per day. The silver member gets 5% discount and gold member gets 10% discount of the total price. If the car is rented 7 days or more, 10% discount will apply.
The user should have the option of starting a new price calculation.
The program should include the validation check for missing or invalid data.
Please make use of functions wherever you can.
The prices of the additional items are listed below:
Optional AdditionsPrice/day
Excess Deduction$20
Unlimited Kms$10
Additional Driver$10 per rental
Sample Output:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
COME AND DRIVE CAR RENTALS
The Basic rental price includes insurance and 100 km per day.
10% discount applicable if renting for 7 days or more.
Enter Days: 2
Optional Additions:
Excess deduction: Y
Unlimited kms: N
Additional driver: Y
VIP Membership:
(1) Non-member(2) Silver(3) Gold: 3
Car Rental Details:
Rental Price: $150.00
Discount:$ 15.00
Final Price:$135.00
Calculate another Car Rental (Y)es or (N)o:N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
