subject

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 individual requesting it. These are the requirements for the program: Req 1: The base monthly cost of insuring a car is $50.00 -- this is the starting cost, we will add to this cost as we collect more information (see the rest of the requirements) Req 2: Your program should get the age of the driver from the user. If the driver is under the age of 25, the monthly premium goes up $100; otherwise, If the driver is under the age of 35, the monthly premium goes up $20. 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. If the number of accidents is more than or equal to 3, you add $60 per accident to the monthly premium. If driver had more than 4 accidents in the past 5 years, we cannot provide insurance (let the user know with a message). Number of Accidents: Accident Surcharge 1 Accident None

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
You know the right answer?
Your task is to write a little utility program to assist a local insurance agency on calculating mon...
Questions
question
Computers and Technology, 20.04.2021 23:20
question
Mathematics, 20.04.2021 23:20
question
Mathematics, 20.04.2021 23:20
question
Mathematics, 20.04.2021 23:20
question
English, 20.04.2021 23:20
question
Mathematics, 20.04.2021 23:20
question
Mathematics, 20.04.2021 23:20
question
Mathematics, 20.04.2021 23:30
question
Mathematics, 20.04.2021 23:30