Wendy P.

asked • 06/05/20

NEED HELP ASAP!!!

Design a program that calculates and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the driver’s speed. Validate the input as follows:


  1. The speed limit should be at least 20, but not greater than 70.


  1. The driver’s speed should be at least the value entered for the speed limit ­(otherwise the driver was not speeding).


Once correct data has been entered, the program should calculate and display the number of miles per hour over the speed limit that the driver was doing.

1 Expert Answer

By:

Patrick B. answered • 06/05/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.