Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Write a function to compute the total fine and penalties (traffic points) of Traffic Ticket', and warn the driver of the status of their
3. Write a function to compute the total fine and penalties (traffic points) of Traffic Ticket', and warn the driver of the status of their license record based on driver 's current driving license condition: ['none', 'Restricted' Suspended or 'Revoked']. Therefore, the input from the driver should be the following Current License condition, and offense, output: Updated License status, Fine, Traffic points, and Warning. A driver who has no driving conditions (none), based on the reason given below the following fine and traffic points is applied. A driver can lose their license if he/she receives 12 points within 3 years. If the user has Restricted, the following fines applies but also loses his/her license Fines Offense 1-5mph 26+ mph Failure to Sianal Stop for school bus $180 Improper U-turn$100 Traffic points $90 $155 + additional $4 per mile $95 2 6
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started