Answered step by step
Verified Expert Solution
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 through
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.
Course class
The course class should contain the following fields:
ID Number
Name
College Business Engineering, Nursing, etc
An Array of person objects
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 #:
Extended Classes:
& Extend the Person class into Student class and Employee class
Extend the Employee class into Instructor class and Staff class
& Extend the Student class into graduateStudent and undergrad Student class
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started