Question: Gather user info Driver Name ( string ) Driver Age ( integer ) Coverage Level ( string ( SM , L , F ) )

Gather user info
Driver Name (string)
Driver Age (integer)
Coverage Level (string (SM, L, F))
Utilize try/except to ensure the user input is valid
Store this information in a dictionary Add the customers coverage cost to the dictionary according to their age and coverage desired using the table above
Ask the user if they've had any accidents
If the user has had any accidents, their coverage rate increases by 41%
Update the customers coverage cost in the dictionary
Ask the user if they want to pay up front for a 10% discount
If paying up front update the dictionary with the new rate
Output the annual insurance cost for the customer
Ensure that unit tests to cover most scenarios are created and pass
Ensure that you have docstring at the top of your program with your name/date/program information

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!