Question: USE FOR LOOP --> MATLAB A professor needs help checking how his students are doing in his class. He just gave an exam and has
USE FOR LOOP --> MATLAB
A professor needs help checking how his students are doing in his class. He just gave an exam and has the grades. He has a total of five students in his class. You must make a program that will prompt the professor for the score of each students exam (out of 100). You must use the for loop command.
a. If the score is less than or equal to 100 and more than or equal to 70 give an Excellent.
b. If the score is less than 70 and more than or equal to 40 give a Good.
c. If the score is less than 40 and more than 0 give a Pass.
d. If none of them are right give a Fail.
e. For all other inputs except those stated above, give an Error.
Print the five students scores and the number of Excellents, Goods, Passes, Fails, and Errors to the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
