Determine the return types based on the semantic of helper

Assignment Help JAVA Programming
Reference no: EM131505745

Assignment: Intermediate Programming

Project

In this project you will implement an in-memory, i.e. nothing will be written to or read from disk b, student information system. For this purpose create a class with the following attributes none of which can be accessed out of the class.

• id: attribute to store student id, type will be integer
• name: attribute to store student name, type will be string
• surname: attribute to store student surname, type will be string
• gpa: attribute to store student gpa, type will be double.

Implement the following helpers for the class, determine the return types based on the semantic of the helper. Helper names are self explanatory, i.e. setName(s) assigns value of s to name attribute of the object and getName() returns name value of the object.

• student(id, name, surname, gpa): constructor
• setName(string s)
• setSurname(string s)
• setGpa(double s)
• setId(int s)
• getName()
• getSurname()
• getGpa()
• getId()

Create a new class within the same project that has main method. This class will present the following menu

MENU
1 : Add new student
2 : List all students
3 : Delete student
4 : Search student by name
5 : Update gpa
0 : Quit

Enter your choice:

First menu item, i.e. when choice is 1, prompts instructions to add information for a new student. Below is an example.

Enter your choice: 1
Enter id: 1
Enter name: alev
Enter surname: mutlu
Enter gpa: 2.45
Second menu item list students. Below is an example.
Enter your choice: 2
ID : 1
Name: alev
Surname: mutlu
GPA: 2.45
==================================
ID : 2
Name: emine
Surname: mutlu
GPA: 3.01
==================================

Third menu item asks for a student name, prints information belonging to that name and asks if to delete information of the student. Below is an example.

Enter your choice: 3
Enter student name: alev
ID : 1
Name: alev
Surname: mutlu
GPA: 2.45
Delete this student [Y/N]

Fourth menu item asks for a student name and prints all related information for the given name. Below is an example.

Enter student name: alev
ID : 1
Name: alev
Surname: mutlu
GPA: 2.45

Fifth menu item, asks for a student name and updates his gpa. Below is an example.
Enter your choice: 5
Enter student name: alev
Enter student's new gpa: 3.33
MENU
----
1 : Add new student
2 : List all students
3 : Delete student
4 : Search student by name
5 : Update gpa
0 : Quit
Enter your choice: 2
ID : 1
Name: alev
Surname: mutlu
GPA: 3.33
==================================

To store single student's information you need an object of type student.

To store information of multiple students you need to use array list. To use array lists you need to import java.util.ArrayList

Later you can use the following definition to store information for multiple students:

static ArrayList <student> studentList = new
ArrayList<student> ();
BONUS!!!

Add a new menu item "Sort Students by Name" which will sort the arraylist based on the student name

Reference no: EM131505745

Questions Cloud

Explains the basic functions and sources of minerals : Explains the basic functions and sources of minerals and water in the body.What are the functions of water in the body?
How much is withdrawn : An individual makes five annual deposits of $2,000 in a savings account that pays interest at a rate of 4% per year. One year after making the last deposit.
How much will be repaid as a lump-sum amount : A person has made an arrangement to borrow $1,000 now and another $1,000 two years hence. The entire obligation is to be repaid at the end of four years.
Outline the pathophysiology of pain in relation to pleuritis : NUR 231 DRUG THERAPY CASE STUDY ASSESSMENT TASK. Outline the pathophysiology of pain in relation to pleuritis. Discuss the common fears and myths
Determine the return types based on the semantic of helper : Implement the following helpers for the class, determine the return types based on the semantic of the helper.
Determine the value of p-zero as a function of h : Determine the value of P0, as a function of H, for these two investment alternatives to be equivalent at an interest rate of i = 15% per year.
The parts of the multiple-step income statement : The purpose of this assignment is to help you become familiar with the parts of the multiple-step income statement.
What will be john monthly payment over sixtey month : John has just graduated from State University. He owes $35,000 in college loans, but he does not have a job yet.
How many months will it take for owner to recoup investment : It costs $30,000 to retrofit the gasoline pumps at a certain filling station so the pumps can dispense E85 fuel (85% ethanol and 15% gasoline).

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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