Write program that asks for the number of credits and a letter grade for a course. Each letter grade has a point value:
A is 4.00
A- is 3.67
B+ is 3.33
B is 3.0
B- is 2.67
C+ is 2.33
C is 2.00
D is 1.00
F is 0.00
You calculate the "gpa points" by multiplying the grade times the number of credits for the class. Be sure to check that the letter grade is valid; if not, display "Invalid grade!"
For example:
Please enter the number of credits for the course: 3
Please enter your letter grade: A-
You get 11.01 GPA points for that course.
Also for example:
Please enter the number of credits for the course: 1
Please enter your letter grade: Q
Invalid grade!