Question: Must be python Write a program that calculates and outputs a six month car insurance bill for a policy holder. The insurance company has two

Must be python Write a program that calculates andoutputsa six monthcar insurancebill forapolicy holder. Theinsurance company hastwo types ofpolicies: PremierandSelect.If a driver has been with the insurance company 4 or more years they are considered aPremiercustomer,otherwise they are considered aSelect customer. The policy costvaries dependinguponthedrivers age,risk level of the area the driver lives in (highorlowrisk)and whetherdriver drives over 9000 miles per year.Car insurancebills are computedas follows :PremierBill: Drivers age over 24High-Risk9000 or lessmiles $950Over 9000$1100Low-Risk9000 or less miles $880 Over 9000$1000Drivers age 24 or underHigh-Risk9000 or less miles $1,185 Over 9000$1,388Low-Risk9000 or less miles $1,100 Over 9000$1,200SelectBill:Drivers age over 24High-Risk9000 or less miles $1150 Over 9000$1330Low-Risk9000 or less miles $1080 Over 9000$1225Drivers age 24 or underHigh-Risk9000 or less miles $1,390 Over 9000$1,510Low-Risk9000 or less miles $1,325 Over 9000$1,400The program should prompt the user to enterpolicy type(P for Premier orSfor Select), Drivers age, risk level (Hfor HighorLfor Low), amileagelevel code(Yfor over 9000orNfor not over 9000).Also,if any of the entered codes are not one of those specified, it should be treated as an errorForselect policies,thedrivermayhave a AAA driver course certificate. If so, there is a 5% discount off the bill. Therefore, to calculate aselectbill, you must ask the user if thedriver has a AAA.The output is formatted as :PremierBill Amount : $ 99999.00orSelectBill Amount : $ 99999.00The program must containtwovalue returning functions :PremierBill:This function calculates and returns the billamount for apremier policySelectBill:This function calculates and returns the billamount for aselect policy

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 Programming Questions!