Question: in C++ programming Question #1: Speed System Program (6 pts) In this question, you will write a program that determines the penalty of a driver

 in C++ programming Question #1: Speed System Program (6 pts) In
in C++ programming

Question #1: Speed System Program (6 pts) In this question, you will write a program that determines the penalty of a driver who is speeding on highway with the speed limit of 100km/h based on Ontario Courts. . . Your program should follow the following rules: Prompt the user to enter name, id and score and validates the information. The student name should be entered as "LastName, FirstName" (separated by comma). Please note the whole name should be saved in one string. The driver ID must have 7 digits. The driver's SPEED must greater than 0. If the user enter correct information, your program should display the fine based on the speed. When the fine is displayed, the output should be "FirstName LastName got SPEED. Based on the speed system, FirstName (ID) will pay X." Please note the calculation of X is based on the following rules: A $2.50/km speeding fine for 1-19km/h over the speed limit A $3.75/km speeding fine for 20-29km/h over the speed limit. A $6.00/km speeding fine for 30-49km/h over the speed limit. 50+km/h over the speed limit comes with a court decided fine. Your program should be able to ask user for new input of driver's information for penalty until get the input Yes from the user. Display welcome & closing messages

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!