Question: (i)Calculate Cyclomatic Complexity (V(G)) method. (ii) Perform McCabe Calculations on it (M=? method) b) a) c) Question # 2. Draw control flow graph and calculate


(i)Calculate Cyclomatic Complexity (V(G)) method. (ii) Perform McCabe Calculations on it (M=? method) b) a) c) Question # 2. Draw control flow graph and calculate cyclomatic complexity of the following pieces of codes. [7+8 = 15 marks] a) IF A = 10 THEN IF B>C THEN A=B ELSE A=C ENDIF ENDIF Print A Print B Print b) ri=1; total.input = total.valid = 0; Sum=o; Do increment total input by 1; IF value[i].>= minimum and value[i] THEN average = sum/total.valid; ELSE average = -999; 10 ENDIF 13 END average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
