Assignment title: Information
Assignment 3 (Due Week 10)
Create a Python program that will compute the car rental prices.
The program takes the input of days, selection of VIP membership, and optional additions, and 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. If any required input is missing or invalid, the program should display a message box showing the appropriate error message and not carry out the calculation.
The prices of the additional items are listed below:
Optional Additions Price/day
Excess Deduction $20
Unlimited Kms $10
Additional Driver $10 per rental
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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: $ 7.50
Final Price: $142.50
Calculate another Car Rental (Y)es or (N)o: N
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
After finishing the program, save your program (.py) files into a folder with your student number as the folder name (i.e. XYCDE1234).