Question: calculate the cyclomatic complexity: calculate the cyclomatic complexity. 1) integer A, B; 2) input (A); 3) 4) if (A > 7) 5) { 6) B

calculate the cyclomatic complexity:

calculate the cyclomatic complexity: calculate the cyclomatic complexity. 1) integer A, B;

calculate the cyclomatic complexity.

1) integer A, B;

2) input (A);

3)

4) if (A > 7)

5) {

6) B = 1;

7) }

8) else

9) {

10) B = 2;

11) if (A

12) B = 3;

13) } // end else !A>7

14)

15) while (i=1; i

16) {

17) if (B

18) {

19) B = B + 4;

20) }

21) else

22) {

23) B = B - 5;

24) } // end else !B

25) } // end loop

26)

27) output (A,B);

28) end;

Start false true true 3 false true V false true alse End

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!