Answered step by step
Verified Expert Solution
Question
1 Approved Answer
code in python Write a program for an Insurance company that calculates a policy amount based on the type of policy a person is choosing.
code in python
Write a program for an Insurance company that calculates a policy amount based on the type of policy a person is choosing. The monthly premium rates are as follows: Health Insurance is $250.00, Auto Insurance is $125.00, and Life Insurance is $75.00. Write a function that asks the user for the policy type (1= Health Insurance, 2= Auto Insurance, 3= Life, 4= Health and Auto, 5= Auto and Life, 6= Health and Life, 7= All three Once the user enters the policy type, the program should then use an if statement to determine their policy amount (without discounts). That policy amount and their choice will then be sent to another function that calculates both the discount amount and the total monthly premium based on their choice. If they choose two policy types, then give them a 10% discount on their monthly premium. If they choose all three policy types, then give them a 20% discount on their monthly premium. Write a function that prints their individual price of their insurance, any discounts that apply and their final monthly premium paymentStep 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