need this in beginners code. Matlab for dummies
3. Write a function to compute the total...
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 Offense 1-5mph 26+ mph Failure to Signal $95 Stop for school bus $180 Improper U-tur $100 Traffic points 2 5 Fines $90 $155 + additional $4 per mile 6