Writing a program to manage a student database

Assignment Help Programming Languages
Reference no: EM131565158

Assignment

Instructions

The fourth 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:

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 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 a record that is not in the database, a message should also be displayed. After each successful operation is completed aJOptionPane window should be displayed confirming the success. In the case of a successfulFind request, a window should pop up containing 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 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 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 of credit hours. It should not contain the student ID. The class should have the following three methods:

1. 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 used to compute the GPA to zero.

2. 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 Updaterequest is made.

3. The third method should override toString 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 any course, the GPA should be displayed as 4.0.

Reference no: EM131565158

Questions Cloud

Can they make either or both of the changes they propose : Teresa, Samantha, and Melanie have operated Broken Feather LLC for the last four years using a calendar year-end. Can they make either or both of the changes
Describe role government play in creation of emr standards : Describe the role government should play in the creation of EMR standards. State three reasons why you believe government should or should not be involved?
Identifies and explains the strong points of the managers : Identifies and explains the strong points of the managers.Identifies and explains areas in which improvements are needed.
Writing a critical film review : Writing a Critical Film Review. Your film review should not just focus on whether you liked the film or not
Writing a program to manage a student database : The fourth programming project involves writing a program to manage a student database. The interface to the program should be a GUI.
Calculate the amount of the annual rental payment : Compute the present value of the minimum lease payments. Calculate the amount of the annual rental payment required.
Explain and justify the compensation package : What pay rate will you offer (using salary survey research as support)? What else may be included in the compensation package?
Explain properties and characteristics of tcp-ip : Explain properties and characteristics of TCP/IP. Explain common TCP and UDP ports, protocols and their purpose. Identify types of network cables and connector.
What are some examples of effective internal controls : Who is responsible for establishing internal controls within the organization? What are some examples of effective internal controls

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd