Speeding Violation Calculator - MUST BE WRITTEN IN PSEUDOCODE 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: 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.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Speeding Violation Calculator - MUST BE WRITTEN IN PSEUDOCODE
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:
-
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.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images