Page 1 of 1

The UML diagram is shown below for the above scenario: Human -name:string -ID:number +speak() Lecturer -roomNumber Local

Posted: Thu May 26, 2022 9:16 am
by answerhappygod
The Uml Diagram Is Shown Below For The Above Scenario Human Name String Id Number Speak Lecturer Roomnumber Local 1
The Uml Diagram Is Shown Below For The Above Scenario Human Name String Id Number Speak Lecturer Roomnumber Local 1 (72.83 KiB) Viewed 11 times
The Uml Diagram Is Shown Below For The Above Scenario Human Name String Id Number Speak Lecturer Roomnumber Local 2
The Uml Diagram Is Shown Below For The Above Scenario Human Name String Id Number Speak Lecturer Roomnumber Local 2 (33.9 KiB) Viewed 11 times
The UML diagram is shown below for the above scenario: Human -name:string -ID:number +speak() Lecturer -roomNumber Local Student -ICNumber +study() +takingExam() Student -Cgpa +takeNote() Foreign Student -passportNumber +study() +takingExam()
Question 3 (25 marks) Based on Question 2 above, write a complete C++ Programming code for the scenario.
Draw a complete class diagram with the relationship connectivity based on the following statement. i. A superclass called Human that consist attribute of name and ID and method of speak. ii. The superclass is having two subclasses which are Lecturer and Student. Lecturer consist attribute of roomnumber and student is having CGPA with the method of take note. iii. The student class is having two subclasses called local student and foreign student. Local student is having attribute of IC Number while Foreign student is having attribute of Passport number. Both of classes are having method of study and taking exam. LIMKOKWING UNIVERSITY OF CREATIVE TECHNOLOGY FACULTY OF INFORMATION & COMMUNICATION TECHNOLOGY Page 2 of 3 Feb 2022 Final Examination C++ Programming Question 3 (25 marks) Based on Question 2 above, write a complete C++ Programming code for the scenario.