Writing a program to manage a student database

Assignment Help Database Management System
Reference no: EM13842106

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 a JOptionPane window should be displayed confirming the success. In the case of a successful Find 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: 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. 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 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: EM13842106

Questions Cloud

Ethically responsible for what occurred : Identify a company you believe is/was ethically responsible for what occurred. How would you have approached this differently as the CEO/Marketer to ensure this hadn't happened? Be sure to share the URL with your fellow students of the organization y..
Relationship between customer and products : relationship between customer and products
Relationship between physical health and stress : What is the relationship between physical health and stress? How does optimism and negative affect impact the stress response? What can individuals do to mitigate the health risks associated with prolonged stress
Develop a context diagram and a diagram 0 dfd : Develop a context diagram and a diagram 0 DFD for TIMS. Include notes to identify any assumptions or other issues. Depending on program used, either include URL or raw file of program, PLUS a common format (jpg/pdf).
Writing a program to manage a student database : writing a program to manage a student database
Inner causes-interpersonal causes and external causes : Aggression can be triggered by inner causes, interpersonal causes, and external causes. Explain and give examples of each type of cause. Which – inner, interpersonal, or external – do you think are most powerful? Why?
Explain the strengths and limitations of dispositional : Differentiate between the various dispositional, biological and evolutionary personality theories. Explain the strengths and limitations of dispositional, biological and evolutionary personality theories
Which technique of social influence do you use on others : Describe the two types of social influence. Give a personal example of how you have been influenced by each type. Which technique of social influence is most effective when used on you? Explain using an example. Which technique of social influence do..
Restrictions set customs have had negative effect on impot : Choose a country and then explain the way in which some of the restrictions set by customs have had a negative effect on the import/export business.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a function

Create a function that returns the day of the week for a specified date. Create a trigger that displays the message "Emp table updated" when an update to the employee table increases the employee's basic salary.

  Characteristics of relational database management system

Describe the characteristics of a Relational Database Management System (RDBMS).

  1modify the database by adding an additional column

1.modify the database by adding an additional column deleteddate to those tables that represent entities that could

  What classes are necessary to obtain a specific degree

What degree is the student working towards. A student can only work on one degree at a time. What classes are necessary to obtain a specific degree

  How much indirect factory wages and factory equipment

How much indirect factory wages and factory equipment depreciation cost would be assigned to the Customer Orders activity cost pool

  Wallsherpool sixth - theatre company

A report that shows the characters that still need actors for the current performance and storing the student details if all requirements are met, providing a suitable message for Vicky

  Create script file to list file in directory in sorted order

Create a script file to list the files in a directory in sorted order, showingonlythe file name, file size, and modification date.Each file's attributes must be on one line per file, in any order.

  It inventory database given a school system database with

it inventory database given a school system database with over 2000 computers 100 elmos 200 smartboards 200 projectors

  Use javascript to ensure that an entry has been made

When the database is set up it should be populated with the data that you have chosen. Display this data as part of your documentation. Each table should have from 3 to 6 records initially.

  Construction of a subquery in ms access

What is the difference between the information provided by the E-R Diagram and the data dictionary?

  Organization''s database

Submit a security plan to secure the organization's database. The security plan will be submitted to the CIO. The organization has many concerns about unauthorized access, since there have been reports that some confidential information has been a..

  Construct a query that will show the number of days

Construct a query that will show the number of days that exist between the first invoice and last invoice, for each month, for each employee, using the DATEDIFF function

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