Question: Help with a c Program to compute the car insurance premium for a person based on their age and the number of tickets they have
Help with a c Program to compute the car insurance premium for a person based on their age and the number of tickets they have received. The following table explains how to perform the ticket computation:
If Person's Age Is
Then Insurance Cost Is
Less than 21
$1500 + $250 x number of tickets
From 21 through 24
$1200 + $250 x number of tickets
25 or older
$1000 + $200 x number of tickets
Print the persons age, number of tickets and the computed insurance cost.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
