Question

need this in beginners code. Matlab for dummies 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

0 0
Add a comment Improve this question Transcribed image text
Answer #1

so the c code is shown below:

then the code is compiled and executed in linux is shown below

Add a comment
Know the answer?
Add Answer to:
need this in beginners code. Matlab for dummies 3. Write a function to compute the total...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT