What is the code to a Python program that will: 1) Get the driver's age as input.
Question:
What is the code to a Python program that will:
1) Get the driver's age as input.
2) Get the number of DUI tickets the driver has as input.
3) Get the number of speeding tickets the driver has as input.
if the driver has an age greater than 85 print the following "Please return your license to DMV."
The below conditions can be checked only if the driver's age is less than 85.
if the total number of speeding tickets and DUI is more than or equal 5 print "Your license is revoked."
if the total number of speeding tickets and DUIs is less than 5 and more than 3 print "You being watched. Drive responsibly."
if the total number of speeding tickets and DUI is less than 3 and more than 1 print "Please drive carefully".
if the total number of speeding tickets and DUI is 0 print "Thanks for keeping our roads safe."
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang