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: PremierandSelectIf a driver has been with the insurance company or more years they are considered aPremiercustomerotherwise they are considered aSelect customer. The policy costvaries dependinguponthedrivers age,risk level of the area the driver lives in highorlowriskand whetherdriver drives over miles per year.Car insurancebills are computedas follows :PremierBill: Drivers age over HighRisk or lessmiles $Over $LowRisk or less miles $ Over $Drivers age or underHighRisk or less miles $ Over $LowRisk or less miles $ Over $SelectBill:Drivers age over HighRisk or less miles $ Over $LowRisk or less miles $ Over $Drivers age or underHighRisk or less miles $ Over $LowRisk or less miles $ Over $The program should prompt the user to enterpolicy typeP for Premier orSfor Select Drivers age, risk level Hfor HighorLfor Low amileagelevel codeYfor over orNfor not over Alsoif 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 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 : $ orSelectBill Amount : $ The 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
