Create gui which allow for input and display of student data

Assignment Help PL-SQL Programming
Reference no: EM131935102

Lab Assigmnent- Database Connectivity

OBJECTIVES

• Programmatic access to a MySQL database to add and display records

PROBLEM: Student Management System

A teacher needs the ability to store and retrieve student data. This includes

• student name;
• three test scores;
• average; and
• letter grade.

FUNCTIONAL REQUIREMENTS

You can code the GUI by hand or use NetBeans GUI builder interface.

Create a GUI which allows for input and display of student data.

It should include buttons to save a record, display all records.

Create a database and table to store student name and three test scores. (Note that average and grade are calculated by app.)

Student class

Create a Student class to manage the student data. It should have private instance variables of

• student name; and
• three test scores.

The class must have the following methods.

• A default and parameterized constructor
• Sets/gets for all instance variables
• A get method to calculate and return the average
• A get method to calculate and return the letter grade
• toString to display the name of the student

Student DB Class

Create a StudentDB class that is used to create a connection and interface with the database.

This class should have two methods.

• getAll-reads data from database, returns data in an arraylist of student objects
• add-writes a record to the database

GUI class

Insert button will take the info from the GUI (student name and three test scores) and insert a record into the table. Input should be cleared from the textboxes.

Display button will read the data from the database and creates a report in Console window, sample format below.

Name Test1 Test2 Test3 Avg Grade
Bruce Wayne 90 95 98 94.3 A
Clark Kent 65 70 90 75.0 C

Attachment:- Lab-Report-Template.rar

Reference no: EM131935102

Questions Cloud

Write a response paper about electronic medical records : In creating the strategies and recommendations, my process was typing key words on the SNHU Shapiro Library EBSCO database and found the articles.
What are the two monitors that dtgov is using : Why are the SLA monitors important? What are the two monitors that DTGOV is using? What are some ways to ensure that they are protected from manipulation?
Important part of the revision process : Explain what the acronym, FACT, stands for, and why it is an important part of the revision process.
Movement of prisoners in the institution : Prison designs provide restricted and relevant authority towards the movement of prisoners in the institution.
Create gui which allow for input and display of student data : Create a GUI which allows for input and display of student data. It should include buttons to save a record, display all records.
How public policy has impacted the growth of managed care : Explain out of the six committees, which committee do you feel is the least important. State your reasoning using specific examples from your research.
Define management team by drafting an organizational chart : Define the management team by drafting an organizational chart and a plan for hiring employees. Draft the key employee policies and a code of ethics.
What do you tell yourself to keep yourself motivated : How do you stay motivated when there are obstacles or setbacks?
Teenage perpetrators of the abc high school massacre : Dave and George, the teenage perpetrators of the ABC High School massacre, were ardent fans of the violent video game

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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