CJCoding With Joseph

Grade Points

Read a letter grade (A, B, C, D, or F) from input and print its grade-point value using a switch: A is 4, B is 3, C is 2, D is 1, and F is 0. For example, for input B, print:

3

Expected Output:

3
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
B
This input is automatically fed to your program's stdin
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.