Question: Your GradeChanger class will enable the user to replace a student's given grade in a course with a new one, to add a new course

Your GradeChanger class will enable the user to replace a student's given grade in a course with a new one, to add a new course grade, and to compute the GPA.

Your class will have

1.two private instance variables that store the total credits earned in all courses (an int) and the total grade points earned (a double)

2.A constructor with two parameters - total credits and GPA - which will be used to initialize the instance variables

F total grade points is not a construction parameter; GPA is.Your constructor will initialize total grade points to GPA x total credits

3.An accessor ("get") method that returns the total credits

4.An accessor ("get") method that returns the total grade points

5.A mutator ("set") method that adds the grade for a new course. This method will have 2 parameters - the number of credits and the numeric grade earned

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!