Write UML Class Diagram that illustrates the following program: 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 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 graduate Student 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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 5PE: Using classes, design an online address book to keep track of the names, addresses, phone numbers,...
icon
Related questions
Question
Write UML Class Diagram that illustrates the following program:
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
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 graduate Student 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.
.
Transcribed Image Text:Write UML Class Diagram that illustrates the following program: 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 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 graduate Student 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. .
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning