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
DriveRite Insurance would like to apply a discount to the insurance
rate for anyone who is at least years old and who has had no more than
accidents.
Extra if you want a challenge:
Add user validation for the following:
Current rate must be greater than and less than
Age must be between and inclusive
Accidents must at least and no more than
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
