Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

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.

The fourth programming project involves writing a program to manage a studentdatabase. The interface to the program should be a GUI that looks similar to thefollowing:A combo box shouldallow the user toselect one of the fourdatabase actionsshown. The databaseshould beimplemented as aHashMap, with theId field as the keyand a Student record as the value. The selected operation should be performed when theuser clicks theProcess Requestbutton. If the user attempts to insert a key that is alreadyin the database an error message should be displayed using a JOptionPane message dialogbox. If the user attempts to delete, find or update a record that is not in the database, amessage should also be displayed. After each successful operation is completed aJOptionPane window should be displayed confirming the success. In the case of asuccessfulFindrequest, a window should pop up containing the student’s Id, name, majorand current GPA. When the user selects theUpdaterequest, the following JOptionPanewindows should be displayed to gather information about a course that has just beencompleted. As a result, the Student record in the database will be updated accordingly.This program mustconsist of twoclasses.The first classStudentManagementshould define theGUI and handle thedatabase interactions.It should be hand-coded and not generated by a GUI generator.The second class named Student, should define the student record. The class defines theinstance variables id, name, major, totalCredits (as total number of credits completed) andtotalQP (as total quality points). The quality points for a course is calculated as thenumeric value of the grade received in the course times the number of credit hours forthat course. The values of totalCredits and totalQP will be used to calculate the GPA. Theclass Student should also define: (1) a constructor with arguments that is used when newstudent records are created It takes Id, name and major as parameters and will initialize
Background image of page 1
totalCredits and totalQP to zero; (2) getter methods for all instance variables and settermethods for totalCredits and totalQP; (3) a method overriding toString that returns alabeled string containing the student Id, name, major and GPA.Be sure that all instance and class variables are declared asprivate. Also any exceptionsthrown by nonnumeric inputs should be properly handled. Finally when a student has notyet completed any course, the GPA should be displayed as 4.0.
Background image of page 2
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"