Question: Create a GPA calculator in Java. Ask the end user for the credit hours and letter grade for each class. Once the user is finished

Create a GPA calculator in Java. Ask the end user for the credit hours and letter grade for each class. Once the user is finished with the data entry, calculate and output the overall GPA for the given input.

For example, if four classes are input, each of which is a three-hour course, with grades of A, B, B, and B, the overall GPA will be 3.25.

The exact user interaction is up to you. As long as the requirements above are met, the code is readable (and properly documented), and the application is user-friendly.

Letter Grade

Grade Point Value per Credit Hour

A-4

B-3

C-2

D-1

F-0

And the semester GPA is the total grade points divided by total credit hours.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!