Advertisement
akosiraff

Download StudentHashMapDB JAVA

Jul 13th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/studenthashmapdb-java/
  3. A combo box should allow the user to select one of the four database actions shown. The database should be implemented as a HashMap, with the ID field as the key and a student record consisting of a name and major as the value. The operation
  4. should be performed when the user clicks the Process Request button. If the user attempts to insert a key that is already in the database an error message should be displayed using a JOptionPane message dialog box. If the user attempts to delete, find or update
  5. a record that is not in the database, a message should also be displayed. After each successful operation is completed a JOptionPane window should be displayed confirming the success. In the case of a successful Find request, a window should pop up containing
  6. the student’s ID, name, major and current GPA. When the user selects the Update request, the following JOptionPane windows should be displayed to gather information about a course that has just been completed: This program must consist of two classes. The
  7. first class should define the GUI and handle the database interactions. It should be hand-coded and not generated by a GUI generator. The second class named Student, should define the student record. It must have instance variables for the student name, major
  8. and two variables that are used to compute the GPA. A variable that contains the total number of credits completed and a second variable that contains the total quality points, which are the numeric value of the grade received in a course times the number
  9. of credit hours. It should not contain the student ID. The class should have the following three methods: A constructor that is used when new student records are created. It should accept the name and major as parameters and initialize the fields that are
  10. used to compute the GPA to zero. The second method courseCompleted should accept the course grade and credit hours and update the variables used to compute the GPA. It will be called when an Update request is made. The third method should override toString
  11. and return a labeled string containing the student name, major and GPA. Be sure that all instance and class variables are declared as private. Also any exceptions thrown by nonnumeric inputs should be properly handled. Finally when a student has not yet completed
  12. any course, the GPA should be displayed as 4.0. Also, please include a word follow which has the following: A brief description of your approach to the design A UML class diagram that includes all classes including any that were supplied . Do not include predefined
  13. classes. You need only include the class name for each individual class, not the variables or methods A test plan that includes test cases that you have created indicating what aspects of the program each one is testing A short paragraph on lessons learned
  14. from the project
  15. Download: http://solutionzip.com/downloads/studenthashmapdb-java/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement