Write program that asks for the number of credits and a


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!

Solution Preview :

Prepared by a verified Expert
Business Management: Write program that asks for the number of credits and a
Reference No:- TGS02787214

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)