Question: Screen capture of the program execution (i want it like this form): A local Road Safety Department is tasked with monitoring and issuing speeding tickets

 Screen capture of the program execution (i want it like this

Screen capture of the program execution (i want it like this form):

form): A local Road Safety Department is tasked with monitoring and issuing

speeding tickets and warnings for drivers who violate the 120 km/hr speed

A local Road Safety Department is tasked with monitoring and issuing speeding tickets and warnings for drivers who violate the 120 km/hr speed limit. Write a complete C+t program that reads the travelled distance of a car in km (as integer) and the elapsed time in minutes (as integer). The program should compute the speed of the car and issue violation ticket if the driver exceeds the speed limit. The program must distinguish between private small vehicles ('S"), large commercial trucks (T"), and government owned ones ('G'). Your program should perform the following tasks o Prompt the user to enter the type of the car (S, T, or G) Prompt the user to enter the travelled distance o Prompt the user to enter the elapsed time o Convert the time from minutes to hours. (e.g. 90 minutes - 1.5 hours) o Compute the speed as the travelled distance divided by the time in hours. o Check if the driver violated the speed limit of 120 km/hr and issue speed violation ticketotices/action according to the following table Speed Speed Violation fee Between 120 and 140 km/hour Between 140 and 160 km/hour More than 160 km/hour 10 OMR 30 OMR 50 OMR, and driver's licence is suspended Notify the government violation 20 OMR 60 OMR 100 OMR, and nstitution of the driver s licence is suspended Less than or equal to 120 0 OMR No violation

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!