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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 9 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 9 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply