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:
- Draw Control Flow Graph of the given code.
- Identify no. of predicate nodes, edges and regions of the given code and also Identify all of the independent path
- 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
Get step-by-step solutions from verified subject matter experts
