Question: Problem 2 ( 1 3 points ) : Write a program ( not a function ) to covert a percent grade ( P G )
Problem points:
Write a program not a function to covert a percent grade to a letter grade based on
the range of
Requirements:
a Prompt the user to enter a percent grade 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: percent grade is percent
grade is and percent grade is
Need this done in matlab please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
