Question: Complete the Matlab code (m script file) to plota straight line in the form of y mx+b, where the value of m = 2, b
Complete the Matlab code (m script file) to plota straight line in the form of y mx+b, where the value of m = 2, b = 5, and x varies between-10 and 10 Make any assumptions needed. Note: A plot needs to be labelled clc; clear all; end figure plot(x.y) . 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 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 none), based on Offense Fines S90 $155additional $4 per mile Traffic points 1-5mph 26+ mph 2 Failure to Signal $95 Stop for school bus $180 Improper U-turn $100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
