Question: How do I enter this into Python Drive - Rite Insurance would like to apply a 1 0 % discount to the insurance rate for

How do I enter this into Python
Drive-Rite Insurance would like to apply a 10% discount to the insurance
rate for anyone who is at least 30 years old and who has had no more than
5 accidents.
Extra if you want a challenge:
Add user validation for the following:
Current rate must be greater than 0 and less than 3000
Age must be between 16 and 90(inclusive)
Accidents must at least 0 and no more than 5
Display a meaningful message if any one of the validation tests fail.
Only if all input is valid then calculate the discount.

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!