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

This programming project involves writing a program to manage a student

This programming project involves writing a program to manage a student

database. The interface to the program should be a GUI that looks similar to the following:

Please complete this project in its entirety.

1Project 4This programming project involves writing a program to manage a student database. The interface tothe program should be a GUI that looks similar to the following:A combo box should allow the user to select one of the four database actions shown. The databaseshould be implemented as a HashMap, with the ID field as the key and a student record consisting of aname and major as the value. The operation should be performed when the user clicks theProcessRequestbutton. If the user attempts to insert a key that is already in the database an error messageshould be displayed using a JOptionPane message dialog box. If the user attempts to delete, find orupdate a record that is not in the database, a message should also be displayed. After each successfuloperation is completed a JOptionPane window should be displayed confirming the success. In the caseof a successfulFindrequest, a window should pop up containing the student’s ID, name, major andcurrent GPA. When the user selects theUpdaterequest, the following JOptionPane windows should bedisplayed to gather information about a course that has just been completed:
Background image of page 1
2This program must consist of two classes.1.The first class should define the GUI and handle the database interactions.2.The second class named Student, should define the student record. It must have instancevariables for the student name, major and two variables that are used to compute the GPA. Avariable that contains the total number of credits completed and a second variable that containsthe total quality points, which are the numeric value of the grade received in a course times thenumber of credit hours. It should not contain the student ID. The class should have the followingthree methods:a.A constructor that is used when new student records are created. It should accept the nameand major as parameters and initialize the fields that are used to compute the GPA to zero.b.The second method courseCompleted should accept the course grade and credit hours andupdate the variables used to compute the GPA. It will be called when anUpdaterequest ismade.c.The third method should override toString and return a labeled string containing thestudent name, major and GPA.Finally when a student has not yet completed any course, the GPA should be displayed as 4.0.The google recommended Java style guide, provided as link in the week 2 content, should be used toformat and document your code. Specifically, the following style guide attributes should be addressed:Header comments include filename, author, date and brief purpose of the program.In-line comments used to describe major functionality of the code.Meaningful variable names and prompts applied.Class names are written in UpperCamelCase.Variable names are written in lowerCamelCase.Constant names are in written in All Capitals.Braces use K&R style.In addition the following design constraints should be followed:Declare all instance variables privateAvoid the duplication of codeAlso any exceptions thrown by nonnumeric inputs should be properly handledTest cases should be supplied in the form of table with columns indicating the input values, expectedoutput, actual output and if the test case passed or failed. This table should contain 4 columns withappropriate labels and a row for each test case.Note that the actual output should be the actual resultsyou receive when running your program and applying the input for the test record. Be sure to selectenough different scenarios to completely test the program.Submission requirementsDeliverables include all Java files (.java) and a single word (or PDF) document. The Java files should be
Background image of page 2

Show 

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"