Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need answers for question b and c Questien 2 Note: As for questions (a),(b) and (c), write your antwer in the annwer booklet provided.

i need answers for question b and c image text in transcribed
image text in transcribed
Questien 2 Note: As for questions (a),(b) and (c), write your antwer in the annwer booklet provided. As for question (d) wrice the cede in a C++ file (c.gu. program2.,pp). Use only a single program for hier question. Given a class diagram that models a student advisory system in Figrure 2. Analyze the diagram and answer the following questions. Figure 2: Class diagram for student advisory system a. Determine the relationship between the following classes and justify your answers: i. Student and Address ii. Student and Advisor iii. Advisor and Person c. Is it possible to define a method in the class Advi sor to get the student under him or hen? For example, Advisor : : getstudent (). Justify your answer. (S marks) d. Based on the class diagram, implement all classes in a C++ program. Define only the methods that are shown in the diagram (other methods are not required). The purpose of each method is as its name implies. Use inline style for all classes. Your program should have the followings: i. Implementation of class Address (4 marks) ii. Implementation of class Person (7 marks) iii. Implementation of class Advisor (7 marks) iv. Implementation of class Student (15 marks) v. Test the classes in the main function by creating a student object, and assign it to an advisor. Finally print out the the information about the student including his/her advisor's information. See the expected output in Figure 3. (7 marks) Student's name: Ali Student's city: Skudai Advisor's name: Dr. Abu Advisor's city: Johor Bharu Advisor's faculty: FC Figure 3: Expected output of program2

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

5. Have you any experience with agile software development?

Answered: 1 week ago