Problem 4 ( Create a MATLAB script that calculates the letter grade for a given score input by the user. Use the following grading scheme: 90 and above: 'A' 80 to 89: 'B' 70 to 79: 'C' 60 to 69: 'D' Below 60: 'F' Ensure your script correctly handles unexpected inputs like negative numbers or non-numeric values.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.1: Selection Criteria
Problem 2E
icon
Related questions
Question

answer in matlab do not use ai

Problem 4 (
Create a MATLAB script that calculates the letter grade for a given score input by the user.
Use the following grading scheme:
90 and above: 'A'
80 to 89: 'B'
70 to 79: 'C'
60 to 69: 'D'
Below 60: 'F'
Ensure your script correctly handles unexpected inputs like negative numbers or non-numeric
values.
Transcribed Image Text:Problem 4 ( Create a MATLAB script that calculates the letter grade for a given score input by the user. Use the following grading scheme: 90 and above: 'A' 80 to 89: 'B' 70 to 79: 'C' 60 to 69: 'D' Below 60: 'F' Ensure your script correctly handles unexpected inputs like negative numbers or non-numeric values.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr