Question: Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade
Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their grade, the computer must then assign the appropriate letter grade based on the list of criteria provided in the table below and display a statement informing the user the letter grade that they have earned. The minimal criterion for each letter grade is as follows: Grade A Criterion At least 90% B At least 80%, but not more than 90% C At least 70%, but not more than 80% D F At least 60%, but not more than 70% Strictly less than 60% If the user has earned a grade of B, the computer must display the message: You earned a grade of . Your letter grade is B. The location given by must display the number grade that the user entered earlier. Therefore, if the user entered a grade of 74, the message must show: You earned a grade of 74. Your letter grade is B. If the user entered a grade of 56, the message must show: You earned a grade of 74. Your letter grade is F. Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their grade, the computer must then assign the appropriate letter grade based on the list of criteria provided in the table below and display a statement informing the user the letter grade that they have earned. The minimal criterion for each letter grade is as follows: Grade A Criterion At least 90% B At least 80%, but not more than 90% C At least 70%, but not more than 80% D F At least 60%, but not more than 70% Strictly less than 60% If the user has earned a grade of B, the computer must display the message: You earned a grade of . Your letter grade is B. The location given by must display the number grade that the user entered earlier. Therefore, if the user entered a grade of 74, the message must show: You earned a grade of 74. Your letter grade is B. If the user entered a grade of 56, the message must show: You earned a grade of 74. Your letter grade is F.
Step by Step Solution
There are 3 Steps involved in it
score inputPlease enter the score grade floorscore 10 if grade 10 grade A elsei... View full answer
Get step-by-step solutions from verified subject matter experts
