Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that simulates how a car insurance company determines your premium. The insurance premium is based on the user's gender, age, and number

Write a program that simulates how a car insurance company determines your premium. The insurance premium is based on the user's gender, age, and number of traffic tickets he has received (numTix). The formula for determining the insurance premium is:
Gender
Age
Premium
Male
Under 21
1500 + 200 * numTix
Male
21 to 29
1200 + 100 * numTix
Male
Over 29
1000 + 100 * numTix
Female
21 and under
1200 + 200 * numTix
Female
Over 21
1000 + 100 * numTix
The language is c++

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

More Books

Students also viewed these Databases questions