Question: For given code below answer the following questions: Draw Control Flow Graph of the given code. Identify no. of predicate nodes, edges and regions of

For given code below answer the following questions:

  1. Draw Control Flow Graph of the given code.
  2. Identify no. of predicate nodes, edges and regions of the given code and also Identify all of the independent path
  3. Determine Cyclomatic Complexity of the given code.

Code

1.If (num==500)

2. statement 1

3. Else if

If (4. num1 >100 and 5. num2 <200)

6. statement 1 else

7. while (num<100)

8. Statement1

9. Statement2

10.Statement3

11. Statement4

12. end while

13. endif

14. Print Program 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 General Management Questions!