I need help with this part of my assignment
I need help with this part of my assignment. <br/>”The second class
named Student, should define the student record. The class defines the instance variables id, name, major, totalCredits (as total number of credits completed) and totalQP (as total quality points). The quality points for a course is calculated as the numeric value of the grade received in the course times the number of credit hours for that course. The values of totalCredits and totalQP will be used to calculate the GPA. The class Student should also define: (1) a constructor with arguments that is used when new student records are created It takes Id, name and major as parameters and will initialize totalCredits and totalQP to zero; (2) getter methods for all instance variables and setter methods for totalCredits and totalQP; (3) a method overriding toString that returns a labeled string containing the student Id, name, major and GPA.”
Currently calculating the GPA of a user who enters in several letter grades isn’t functioning the way i want it to. the code works but its not adding additional grades to obtain the GPA. the program should allow for the user to “update” and calculate a new GPA. for instance if the first update is A but the second is B then the GPA will be 3.5
my java codes along with the actual assignment is in the attachments.

