Question
an insurance company discounts car insurance premium based on the number of years without a car accident. write a python program that uses a loop
an insurance company discounts car insurance premium based on the number of years without a car accident. write a python program that uses a loop to prompt for 3 customer names and how many years without an accident. Use the accident free years to determine the discount ratefor each customer using the table below. your program should determine the highest number of accident free years of 3 and average accident free years. the program must output each customer name with correct discount rate.
years accident free discount
1 to 3 2%
4 to 8 5%
9 to 12 10%
13+ 15%
customer name years of accident free
Mei 4
Mario 1
Bre 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started