How do i read a string of characters entered by the user then output the numerical grade.
A+ = 95
A = 85
B+ = 77
B = 72
C+ = 67
C = 62
D = 57
F = 50
Last edited on
use a conditional check .
1 2
|
if (the input character is equal to any of the above)
return it's corresponding value.
|
Last edited on