Problem Statement

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

/conversion/tmp/activity_task_scratch/627095041.

docx
V

CS10-8L
Machine Problem# 8 Date September 30,
2022

Name Marcus Jurelle P. Del Rosario Section A34

File Name: Surname_MP8.m

Problem Statement:
Based on an automobile’s model year and weight the state of New Jersey determines the car’s
weight class and registration fee using the following schedule:

Model Year Weight Weight Class Registration Fee


1970 or earlier Less than 2700 lbs 1 $ 16.50
2700 to 3800 lbs 2 25.50
More than 3800 lbs 3 46.50
1971 to 1979 Less than 2700 lbs 4 27.00
2700 to 3800 lbs 5 30.50
More than 3800 lbs 6 52.50
1980 or later Less than 3500 lbs 7 19.50
3500 or more lbs 8 52.50
Using this information, write a MATLAB program (using Switch statement) that accepts the year and
weight of an automobile and determines and displays the weight class and registration fee for the car.

Laboratory Exercise Score Sheet

Criteria Score

1 Correct solution to the problem 40

2 Program is running without errors 20

3 Program generated the required output 40

Total 100

Engr. Cheryl Mari M. Isip ____________


Instructor Date
/conversion/tmp/activity_task_scratch/627095041.docx
V

You might also like