Problem 1 (100 points) Write a program that calculates the insurance points for speeding on the highway and the monthly insurance payments for the next insurance term after receiving the points. The program reads the upper speed limit on the highway, the current speed of the car, and the current insurance cost per year. You can assume that all inputs are integers. The program must print the following information: number of points, or message explaining the status (no points/ lincense suspended), the percent of insurance increase, the new yearly insurance premium, and the new monthly payment. Use the following table:
Points/Status : | Number of mph above the speed limit | insurance rate increase |
The license suspended for a year : | over 25 mph above the limit | no need to buy insurance |
4 points : | 20 - 24 mph above the limit | 20% increase |
3 points : | 15 - 19 mph above the limit | 15% increase |
2 points : | 10 - 14 mph | 10% increase |
1 point : | 1 - 9 mph above the limit | 5% increase |
NO POINTS : | speed limit or less | 0% increase |