Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 2 (30 POINTS): Use the following class diagram to compute the following

ID: 3701856 • Letter: Q

Question

Question 2 (30 POINTS): Use the following class diagram to compute the following object oriented software metrics. Please show your work. C1 C2 C11 C12 C13 C21 C211 C212 C213 2.A.) (10 POINTS) Depth of Inheritance Tree (DIT). Your answer should be in the format: DIT-0 for class X, class Y, class Z DIT for class M, class P, class Q etc You should determine what will be the highest level of DIT for this class diagram. 2.B.) (10 POINTS) Number of Children (NOC). Your answer should be in the format: NOC- 0 for class X, class Y, class Z NOC-1 for class M, class P, class Q etc You should determine what will be the highest level of NOC for this class diagram. 2.?.) (10 POINTS ) Coupling between Object Classes (CBO). Your answer should be in the format CBO- 0 for class X, class Y, class Z CBO 1 for class M, class P, class Q etc You should determine what will be the highest level of CBO for this class diagram.

Explanation / Answer

2.A) Depth of Inheritance Tree ( DIT) : This metric gives the maximum lenth path from sub classes to root class

DIT=0 for Class C [ only root class, it has no other class above it ]

DIT =1 for Class C1 , Class C2

DIT =2 for Class C11, Class C12, Class 13, Class 21

DIT =3 for Class C211, Class C212, Class C213

Highest level for DIT will be 3 for this class diagram

2. B) Number of Children (NOC) : This metric gives the number of direct child classes each class has

NOC =0 for Class C11, Class C12, Class C13, Class 211, Class 212, Class 213

NOC=1 for Class C2

NOC =2 for Class C

NOC =3 for Class C1, Class C21

Highest level NOC will be 3 for given class diagram

2.C ) Coupling Between Object Classes (CBO): This metric gives the count of number of classes each class refers and get referred by other classes

CBO =0 [ No class exists with Zero Coupling]

CBO =1 for Class C11, Class C12, Class C13 , Class 211, Class 212, Class 213

CBO=2 for Class C, Class C2

CBO=3 [ No class exists]

CBO=4 for Class C1 , Class C21

Higest level of CBO is 4

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote