Question: 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,

 A school wants to store information about its students joining a

mentoring programme that the school currently runs. The students are divided into

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 mentees. 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 1 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 CHIDE 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 Mentor 6. Mentor and Mentee c. Contact and Mentor d. Mentee and Contact e. Contact and Student f. Mentee and Student (12 marks) Student Abbreviations: name Studentin) getName() setName(n) displayinfo) 1: name 1: level e: email p : phone x: expertise m: mentee Mentee Mentor level expertise Menteen. e, p.) displayinfo) Mentorn, x) displayinfo) assignmentee(m) getMentee Contact email phone Contacte,p) displayInfo() getEmail) setEmaille) getPhone) setPhone(p) Figure 1: Class diagram

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!