Question: Exercise: Students Records Management System You need to create a system that reads and manages the information of students. You need to ask the user

Exercise: Students Records Management System

You need to create a system that reads and manages the information of students. You need to ask the user how many students the system should include (NoStud). The information of each student includes (ID, FirstName, LastName, BirthDate, & GPA). You need to provide the following functionalities:

Constructors:

With arguments constructor: sets the data fields with the new passed values.

No-args constructor: initializes the ID, FirstName, and LastName with empty string fields. GPA with zero. Pass those values to the argument constructor using this operator. BirthDate with a int value of the year (same year created).

Accessors and mutators for all fields.

Data fields modifiers should be:

Public: ID

Package-access: FirstName, LastName, & BirthDate

Private: GPA

You need a shared data field (StudCounter): keeps track of number of students added to the array.

Add the methods:

public method that returns the full name of a student (getName).

public method that calculate the age of the student (getAge).

Package-access level method that adds the term GPA to the total GPA (UpdateGPA). GPA= (GPA+NewTermGPA)/2

Task1: Create the UML diagram for the Product class.

Task2: For the students system, create the Student class that should hold the above declared class members.

Task3: In the client class: create in it an array of the (NoStud) objects of the class student.

Task4:In the main method print a menu to the user as following and allow the user to choose one of the following options:

Add a new student: initialize a new object in the array after reading its values from the user. Increment the number of current students.

Update a student: allows the user to search for a student by his ID or last name. Then the user can update/change any of his/her info. You need to pass the student's object to a function in order to update it.

Update the GPA of a student (through his/her index)

Delete a student: the user enters the student's index s/he want to delete

0 Exit the system

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!