Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with writing a python code for this given assignment A2: Insurance Premium Assist Your task is to write a little utility program

I need help with writing a python code for this given assignment
image text in transcribed
A2: Insurance Premium Assist Your task is to write a little utility program to assist a local insurance agency on calculating monthly cost of car insurance based on personal information and driving history of the ndividual requesting it These are the requirements for the program Req 1: The base monthily premium of insuring a car is $50.00-this is the starting cost, there may be additional charges due to Req 2 and Req 3 Req 2: Your program should get the age of the driver from the user If the driver is under the age of 25, we add $100 to the monthly premium otherwise, If the driver is under the age of 35, we add $20 to monthly premiumm For example, for a 23 year old driver, you should add $100 to the base premium. For a 28 year old driver, you should add only $20 to the base premium. Any driver over the age of 35, does not get any additional premium due to age. Req 3: Program should get the number of accidents in the last 5 years from the user. Up to one accident is forgiven under accident forgiveness policy If the number of accidents is less than 3, then you add $40 per accident to the premium If the number of accidents is more than or equal to 3, you aod $60 per accident to the monthly premium " cirtver had more than 4 accidents in the past 5 years, we cannot provide insurance

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions