Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 "Inamefnamelabgrades.m
a Write a pseudocode that reads in a numerical grade and assigns a letter grade to it according to the following table:
table grade,A grade B grade C grade D grade F
b Then turn your pseudocode to Matlab statements.
c Test your program for grade values of :
BEGINNING OF THE CODE IS GIVE BELOW. FILL IN THE BLANKS.
lnamefnamelabgrades.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
dispThe grade is A;
elseif
end;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started