โ Back to If Statements
Question 322
Grade Points
Grade Points
Read a letter grade (A,B,C,D, orF) from input and print its grade-point value using aswitch:Ais4,Bis3,Cis2,Dis1, andFis0. For example, for inputB, print: 3
Expected Output:
3
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.