Home /
Expert Answers /
Calculus /
write-a-program-that-is-given-two-integers-representing-a-speed-1-imit-and-driving-speed-in-miles-p-pa549
(Solved): Write a program that is given two integers representing a speed 1 imit and driving speed in miles p ...
Write a program that is given two integers representing a speed 1 imit and driving speed in miles per hour (mph) and outputs the traffic ticket amount. We will need to use a series of if/elif/elif/elif/else statements to complete this program. These are the conditions: - Driving faster than 40 mph over the speed limit receives a $300 ticket. - Driving 21 - 40 mph over the speed limit receives a $150 ticket. - Driving 6-20 mph over the speed limit receives a $75 ticket. - Driving 10 mph under the speed limit (or slower) receives a $50 ticket. - Otherwise, no ticket is received. Ex If the input is (speed limit and then driving speed):