Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i am having trouble writing a program for visual basics 2008with the following s

ID: 3614431 • Letter: I

Question

i am having trouble writing a program for visual basics 2008with the following specifications: i have to design a program that calculates and displays thenumber of miles over the speed limit that a driver was doing. the program is to ask for the speed limit and the dirvers actualspeed. i then have to validate the input as follows: 1.the speed limit should be at least 20 mph but not greaterthan 70 2.the drivers speed should be the value entered for the speedlimit(otherwise the driver was not speeding) then once the data has been entered, the program shouldcalculate and display the number of miles per hour over the speedlimit that the driver was doing. Any help with writing this program will be greatlyappreciated i am having trouble writing a program for visual basics 2008with the following specifications: i have to design a program that calculates and displays thenumber of miles over the speed limit that a driver was doing. the program is to ask for the speed limit and the dirvers actualspeed. i then have to validate the input as follows: 1.the speed limit should be at least 20 mph but not greaterthan 70 2.the drivers speed should be the value entered for the speedlimit(otherwise the driver was not speeding) then once the data has been entered, the program shouldcalculate and display the number of miles per hour over the speedlimit that the driver was doing. Any help with writing this program will be greatlyappreciated

Explanation / Answer

please rate - thanks this is in QBASIC hopefully it can get you started lim = 0 WHILE (lim < 20 OR lim > 70)     INPUT "Enter the speed limit ", lim     IF (lim < 20 OR lim > 70) THEN           PRINT"Invalid speed limit - try again"     END IF WEND INPUT "Enter the drivers speed ", speed IF speed > lim THEN      over = speed - lim      PRINT "you were driving "; over; " milesover the speed limit" END IF STOP