Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the classes Person. Course and University. Include ArrayLists of Person and Course class objects. Note, for this first assignment, you do not need to

Implement the classes Person. Course and University. Include ArrayLists of Person and Course class objects. Note, for this first assignment, you do not need to implement the extended classes or the Registration association classes, only steps 1 through 3.
1) Person class
The person class should include the following data fields;
Name
ID number
birth date
home address
phone number
Be sure to include get and set methods for each data field.
2) Course class
The course class should contain the following fields:
ID Number
Name
College (Business, Engineering, Nursing, etc)
An Array of person objects
3) University class
The University class should contain the data fields for the university, such as:
University name
Federal ID number
Address
Array / ArrayList of course class objects
Array / ArrayList of person class objects
_______________________________________________________________________
Programming Assignment #4:
Extended Classes:
4 & 5) Extend the Person class into Student class and Employee class
6) Extend the Employee class into Instructor class and Staff class
7 & 8) Extend the Student class into graduateStudent and undergrad Student class
9) Registration Class ---> The Registration class creates transactions to link each student with courses they register for.
The program should include the following functionality.
Add class objects to each array.
Find a specific class object in the array, searching on a specific field.
Output the contents of the entire array, including all data fields of each object.
Given a student ID #, display the courses they have registered. for.
Given a course #, display the class roster of registered students.
Include a main method to run and test the basic functionality of the program.
We will expand and extend this program in future assignments.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions