Question: For this assignment, you must use if , elseif , else , and end statements. You may not use looping commands MATLAB: A professor needs
For this assignment, you must use if, elseif, else, and end statements. You may not use looping commands
- MATLAB: A professor needs help analyzing how his students are doing in his class. He has a total of six students in his class and has just given out an exam. You must make a program that will prompt the professor for the raw score of each students exam (out of 100).
- If the score is less than or equal to 100 and greater than or equal to 70, the student gets Excellent
- If the score is less than 70 and greater than or equal to 55, the student gets Good
- If the score is less than 55 and greater than or equal to 20, the student gets Pass
- If the score is less than 20 and greater than or equal to 0, the student gets Fail
- For all other inputs, let Professor Butler know that he messed up by outputting Error
For this assignment, you must use if, elseif, else, and end statements. You may not use looping commands.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
