Question: Problem 2 ( 1 3 points ) : Write a program ( not a function ) to covert a percent grade ( P G )

Problem 2(13 points):
Write a program (not a function) to covert a percent grade (PG) to a letter grade (LG) based on
the range of PG.
Requirements:
a. Prompt the user to enter a percent grade (PG) as follows,
Please enter a percent grade:
b. Use the 'if' statement and 'elseif' clauses to find the range of 'PG'.
c. Define a variable for letter grade 'LG'. According to the range of 'PG', assign the
corresponding letter grade to ' LG '.
d. Output the letter grade 'LG' using 'fprintf' function. The output should be as follow:
The letter grade is #
e. Use the following three examples to test your script: (1) percent grade is 90.5,(2) percent
grade is 70, and (3) percent grade is 55.
Need this done in matlab please
Problem 2 ( 1 3 points ) : Write a program ( not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!