Question: Python Script A city is issuing tickets to drivers who speed past the speed limit . The speed limit is 3 0 miles per hour!
Python Script
A city is issuing tickets to drivers who speed past the speed limit
The speed limit is miles per hour!
Enter the number of drivers being issued tickets for the month.
If the driver is driving the speed limit of miles per hour then tell them thank you for following the speed limit
If the driver is going to miles over the speed limit then give them a warning.
If the driver is going to miles over the speed limit then issue a flat $ fine.
If the driver is going miles per hour or more over the speed limit then issue the flat $ fine and then an additional times the flat fine.
Show the output stating the speed limit
Show the output for the driver if the driver is following the speed limit
Show the output for the driver if they are slightly over the speed limit to miles per hour.
Show the output for each driver and the fine amount if they are to miles per hour over the limit
Show the output for each driver if they are miles or more per hour over the limit and show the number of miles over the speed limit as well and show the fine amount calculated with the flat fine and fine total.
Output Sample:
The speed limit is miles per hour!
How many drivers are being issued tickets:
Driver :
Driver :
Driver :
Driver :
Driver :
Driver has been issued a warning, please slow down.
Driver is following the speed limit thank you.
Driver has been issued a ticket for $ for speeding.
Driver is following the speed limit thank you.
Driver has been issued a ticket for going miles over the speed limit totaling $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
