Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!