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 lisp program to evaluate lisp arithmetic

Write a Lisp program to evaluate Lisp arithmetic expressions. Assume four operators may be used in expressions and they are +, -, *, and /. All these operators are binary, i.e., they are applied in an expression in this format

  Write a program to compute the sum of two matrices

EEL 2161 Electrical Engineering Computer Methods Assignment. Write a program to compute the sum of two matrices and then print it. Firstly user will be asked to enter the order of matrix (number of rows and columns) and then two matrices

  Program that prompts the user to enter the birth rate

This function takes as its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years.

  Add comment lines for the different sections.

Add comment lines for the different sections.

  Design and implement a user interface in c#

Test the program and provide a list of comprehensive test cases used to validate the application and include these test cases in a word document containing all UML class diagram and descriptions. The test data can be shown in a table that includes..

  Explain the tower of hanoi problem

Write a javascript to solve the problem of the Towers of Hanoi. Allow the end user to enter the number of disks in a text field. Use a recursive tower function with four parameters:

  Write a c function called values that returns void

Write a C function called values that returns void and takes two double precision arguments (called a and b) and one double precision array argument.

  Create a user interface that uses the gridlayout manager

Define and compile the following two classes that will represent seats in a stadium and When creating a new Stadium, the constructor above will fill a 27x35 two-dimensional array of Seat objects, where each Seat has a number, row and section.

  Presenting football greatest expertise of reviewing

The start of Buy Fifa Coins the one of the most well-known minutes presenting football greatest expertise of reviewing. Before we look into the coordinate it is only reasonable to take a brief look into the gamer considered as one of the best game..

  C++ program to design a class

The class should have a constructor that accepts a nonnegative integer and uses it to initialize the Numbers object. It should have a member function print() that prints the English description of the Numbers object. Demonstrate the class by writi..

  Create an object oriented application to handle inventory

Working at the GM used car dealership you need to create an object oriented application to handle inventory. To start you create a detailed uml diagram that helps to plan your solution.

  Show the total monthly cost of the expenses

Write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile:

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