Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ,

image text in transcribed

The UML class diagram

No.

Supervisors name

Phone

Email

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

Email

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(): string

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Explain Coulomb's law with an example

Answered: 1 week ago

Question

What is operating system?

Answered: 1 week ago

Question

What is Ohm's law and also tell about Snell's law?

Answered: 1 week ago