Question: *****construct a C++ program using inheritance, aggregation, composition, and file input output***** given the following instructions in the pictures(attatched two pictures UML diagram for class
*****construct a C++ program using inheritance, aggregation, composition, and file input output*****
given the following instructions in the pictures(attatched two pictures UML diagram for class declaration and two tables as input) please check properly and build it
Write a c++ programme using inheritance, aggregation , composition , the work that should be done is given bellow .
A university programme is gonna held a competition . the competition is meant to provide a platform to the students to exhibit their idea ,some notes
-It is an individual participation
-Each student must have project before hand
-Each student must find a supervisor which can be staff regardless their position. Not only lecturers but also technicians as well -as research officers also can be supervisor.
-Only one supervisor is allowed for each student.
-While for supervisors, they can only supervise one student ,

The UML class diagram
Suppose the class design has been done by other parties as shown in the supervisor table data table
| No. | Supervisors name | Phone | | Position |
| 1. | Dr. Erik Fsher | 12345678 | Erik345@umail.com | Lecturer |
| 2. | Dr.Grace Veronika | 43567798 | Grace.ver@umail.com | Research officer |
| 3. | Barry Kumberton | 98765332 | Barry112@umail.com | technician |
Table for the supervisor input
| NO | Students Name | Phone | Project | Programme | |
| 1. | Rosario rogazzo | 0987654321 | Dengue testing kit | Electrical eng. | rogazzo@omail.com |
| 2. | Marsha oliva | 0998654321 | Banking testing | Business studies | oliveisgreen@omail.com
|
| 3. | Jose carlos prieto | 0987764321 | Testing kit for hospital | Bio science | Jose.carlos@omail.com |
Table for students input
Task:
-From UML implement all the classes and relationships.
-Create a Supervisor object and a Student object from the tables given
-Assign each student with a supervisor
-What if the first and second student wanted to change supervisor between them write down code to implement the situation
-the supervisor for the third student wants to withdraw being appointed as supervisor code this situation in your programme
-Print the final list .
Person Contact # name: string +Person() + setName( name: string): void + setld id: string): void +getNamef): string + getPhone(): string + getEmail): string -phone: string email: string + Contact(0 t setPhonel phone: string): void + setEmail ema: string: void + getPhone): string +getEmail: string Staff Student Project # position: string # program. String # title: string Staffl) +setPosition(post: string): void + getPositiont): string Student() + setProgram(prog: string): void + setProject(proj: Project): void +setAdvisor(adv: Project): void +getProjetTitle(): string + getProgram(): string + getProjectAreaf): string + Project) + setTitlel title: string): void +setArea area: string): void + getTitle(): string + getArea(): string getAdvisorName(): string + getAdvisorPosition(): string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
