Write a java program that will allow a user to enter marks and output grades based on the following scale
0-39 E
40-49 D
50-59 C
60-74 B
75-100 A
(use nested if)
Answers
Answered by
2
input student's grade
if grade < 100 AND grade > 75 { student got an A }
else if grade < 75 AND grade > 60 { student got a B }
else if grade < 60 AND grade > 50 { student got a C }
else if grade < 50 AND grade > 40 { student got a D }
else { student got an F } // didn't fit into any of the above scenerios, so must be an F
print to screen what the student got
Similar questions
Social Sciences,
6 months ago
Math,
6 months ago
Hindi,
6 months ago
Social Sciences,
1 year ago
English,
1 year ago