Asked by april
Create a program that will print the student’s letter grade given the following specifications :
90 – 100 = A
80 – 89 = B
70 – 79 = C
60 – 69 = D
below 60 = F
90 – 100 = A
80 – 89 = B
70 – 79 = C
60 – 69 = D
below 60 = F
Answers
Answered by
Steve
letter = (n>=90) ? "A" :
(n>=80) ? "B" :
(n>=70) ? "C" :
(n>=60) ? "D" : "E";
(n>=80) ? "B" :
(n>=70) ? "C" :
(n>=60) ? "D" : "E";
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.