Reference no: EM132356388
Exercise: Horoscopes
Topics : Selection statements (if, elif, else)
Write a program that prompts for a speed limit and clocked speed and either prints a message saying that the speed is legal or prints the amount of the fine if the speed was illegal. Use the following rules to calculate the fine:
Speeding is a $50 fine plus $5 for each mph over the limit plus a $90 penalty for any speed over 90 mph.
Sample run:
Welcome to the speed fine calculator!
Enter the speed limit: 50
Enter the clocked speed: 45
No fine for legal speeds.
Make sure to test all cases, not just the sample runs.
What to submit?
1. Save your program as LastnameFirstNameL5.py
2. Save a screenshot as LastnameFirstNameSSL5.png
3. Submit in the assignment tab for Lab 5.
Welcome to the speed fine calculator!
Enter the speed limit: 40
Enter the clocked speed: 45
Fine: $75
Welcome to the speed fine calculator!
Enter the speed limit: 70
Enter the clocked speed: 94
Fine: $260