Answered step by step
Verified Expert Solution
Link Copied!

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 "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;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part I Lnai 8724

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448475, 978-3662448472

More Books

Students also viewed these Databases questions