Question
Write a c++ programme using inheritance, aggregation , composition , the work that should be done is given bellow . A university programme is gonna
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
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@dmail.com |
2. | Marsha oliva | 0998654321 | Banking testing | Business studies | oliveisgreen@dmail.com
|
3. | Jose carlos prieto | 0987764321 | Testing kit for hospital | Bio science | Jose.carlos@dmail.com |
Table for students input
Task:
1.From UML implement all the classes and relationships.
2.Create a Supervisor object and a Student object from the tables given
3.Assign each student with a supervisor
4.What if the first and second student wanted to change supervisor between them write down code to implement the situation
5. the supervisor for the third student wants to withdraw being appointed as supervisor code this situation in your programme
6.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 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(): stringStep 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