Remember the GPA calculator you did last week? Yes it is useful but.. for PSLE, we don't benchmark using GPAs. As such, you have to create a program that takes in a score, s, and output the corresponding grade. (A*, A, B, C, D, E, U)
The information required can be found here:
A*: 91 and above A: 75 to 90 B: 60 to 74 C: 50 to 59 D: 35 to 49 E: 20 to 34 U: Below 20
The input will be a single non-negative integer not exceeding 100, s.
The grade that corresponds to the score given to the program.
90
A
50
C
97
A*
Subtask | Score |
---|---|
1 | 100 |
2 | 0 |