Question: this is C++ OOP Question [100 Marks A school wants to store information about its students joining a mentoring programme that the school currently runs.

 this is C++ OOP Question [100 Marks A school wants tostore information about its students joining a mentoring programme that the schoolcurrently runs. The students are divided into two groups, mentors and mentees.Mentors are more knowledgeable students and offer helps to mentecs. Mentors arechosen from those students with good CPAs. They can mentor only one

this is C++ OOP

Question [100 Marks A school wants to store information about its students joining a mentoring programme that the school currently runs. The students are divided into two groups, mentors and mentees. Mentors are more knowledgeable students and offer helps to mentecs. Mentors are chosen from those students with good CPAs. They can mentor only one mentee maximum. Mentee's progress are kept track based on their levels, i.e., from level 1 to 5 where 5 indicates a mastery level. Besides, mentee's contact information will also be stored. Given a class diagaram that models the above problem in Figure I and the details about it the class diagram in Table 3. Answer the questions 1 to 3 below. Note: As for questions 1 and 2 write your answers on papers, and for question 3, write your program using any C++ IDE such as DevCpp. Use the codebase program provided, main.cpp. 1. Determine whether the following classes form any relationship to each other in the context of Object-Oriented Programming (OOP). If so, name the type of relationship, otherwise write No Relationship. a. Student, and Mertor b. Mentor and Montec c. Contact and Mertor d. Menl.ee and Contact e. Contact and Student f. Mentee and student. (12 marks) 2. The problem given above involves several OOP concepts including inheritance and polymorphism a. Explain TWO (2) main roles of the inheritance concept in the above problem. Indicate in which part of the class diagram these roles take place. (16 marks) b. Explain how the concept of polymorphism plays the role in the above problem. (10 marks) c. Identify TWO (2) methods that will be specified as polymorphic. Justify your answer. Finaly, explain how you are going to make these methods polymorphic. (12 marks) Table 1: Sample data for mentee students No Mentee's name Email Phone 1 Abdul Samad asamad892@gmail.com 013-89001000 2 Siti Nurdiana ct.nur@yahoo.com 011-123013456 Level 2 2 2 Table 2: Sample data for mentor students No Mentor's name Expertise 1 Ahmad Kamal Web Programming 2 Siti Aminah Java and C++ Student Abbreviations: name Studentin) n: name 1: level e email p: phone expertise mentee getName() setName(n) displayinfo) Mentee Mentor level expertise Menteen, e, p.) Mentorn, x) displayinfo) displayinfo) assignmentee(m) getMentee) Contact email phone Contacte.p) displayinton getEmail setEmail(e) getPhone) setPhone(p) Figure 1: Class diagram 4 Table 3: Description of the members of each class. Description Class Members class Student name Student's name. Student.) A constructor Accessor and mutator methods. ge-Name () and SOL.N() displays the student's information displayTnfo() class Mentee ovo The class attribute indicating the level of progress for each mentee. There are five levels, from 1 to 5, where level 5 indicates mastery level. Mertee () A constructor disp-ayInfo() displays the mentee's information including name, email, phone and level, class Mentor expertise The mentor's area of expertise that he or she can be coaching, e.g., "C++ Programming", "Game Programming", etc. A constructor Mertor) disp aytnfo() displays the mentor's information assignMentee () assigns a mentee to the mentor getMentee () returns the mentee's name of the mentor. Ilowever, if the mentor has not been assigned to any mentee, this method will return an empty string class Contact emai-, phore classs attributes. Contacto A constructor Accessor and mutator methods. getEmail(), sel. Email(), get.Phone () and setPhone () displayInfo() displays the contact information

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!