Question: IF STATEMENT: Assigning Letter Grades [ Execute this question in a new script named Iname _ fname _ lab 3 _ grades.m ] a

IF STATEMENT: Assigning Letter Grades
[Execute this question in a new script named "Iname_fname_lab3_grades.m"]
a) Write a pseudocode that reads in a numerical grade and assigns a letter grade to it according to the following table:
\table[[95, grade,A],[86, grade 95,B],[76 grade 86,C,],[66, grade 76,D],[0 grade 66,F,]]
b) Then turn your pseudocode to Matlab statements.
c) Test your program for grade values of : 100,95,77,76,-15.
BEGINNING OF THE CODE IS GIVE BELOW. FILL IN THE BLANKS.
% lname_fname_lab3_grades.m
% Brief: This program takes numer grade in
& and prompts the letter grade.
% Get the numeric grade
grade = input ('Please enter your grade: ');
% Find letter grade with if construct
if grade >95.0
disp('The grade is A.');
elseif
.......
end;
 IF STATEMENT: Assigning Letter Grades [Execute this question in a new

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 Databases Questions!