Letter Grade to Number

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
closed account (SECMoG1T)
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
Topic archived. No new replies allowed.