Speeding Violation Calculator

Total Page:16

File Type:pdf, Size:1020Kb

Speeding Violation Calculator

CS.112 Lab #17 1

Speeding Violation Calculator

Design a modular 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:

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

 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. Write a Python program for Speeding Violation Calculator.

2. Write a Raptor program for Speeding Violation Calculator.

3. What part of this lab did you find the most challenging?

4. Is there anything that you are confused about after completing this lab?

5. Submit your completed lab17.docx, lab17.py, and lab17.rap files to the portal for grading. Be sure to attach all 3 files for grading.

Recommended publications