Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

First, create a step-by-step algorithm (or a graphical flowchart) to determine and display a students letter grade in a course. A course grade is typically

First, create a step-by-step algorithm (or a graphical flowchart) to determine and display a students letter grade in a course. A course grade is typically reported as a real number with values from 0 to 100. Your algorithm should ask the user to provide a grade in numerical form and display the letter grade corresponding to the numerical grade if the entered value is between 0 and 100 inclusive. If the value is outside of this range, ask the user to re-run the program and enter a value within the range of 0-100. Typical ranges for grades are given below: A: 90 grade B: 80 grade < 90 C: 70 grade < 80 D: 60 grade < 70 F: grade < 60 Then, write a MATLAB script that implements your algorithm/flowchart. The program should ask the user for his or her numeric grade and the letter grade should be generated as the output. Specifically, the computer must display the following message: You entered a score of . Your letter grade is . At the location given by , the program must display the numerical grade that the user just entered, and at the location given by , the program must display the letter grade that it calculated based on the users input. Therefore, if the user entered a score of 74, the message must show: You earned a score of 74. Your letter grade is B. Similarly, if the user entered a grade of 56, the message must show: You earned a grade of 56. Your letter grade is F.

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions