Grade Point Calculation
Time limit1sMemory limit128 MB
Read a letter grade string and print its corresponding fixed grade point value from a lookup table.
- Level
Easy1 of 10
- Topics
- Implementation, Hash map
- Solved
- No attempts yet
Problem
Given a grade for a C language course, write a program that prints the grade point corresponding to that grade.
The grades and grade points are as follows.
Input
The first line contains the grade for the C language course. The grade is one of the 13 values shown in the table above.
Output
Print the grade point corresponding to the given grade on the first line.