Question: 1. Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the statements or statement fragments
1. Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the statements or statement fragments themselves as nodes labels.
2. Compute the cyclomatic number using each of the three methods: a) V(G) = number of conditions +1... b) V(G) = num of edges - num of nodes + 2.. c) V(G) = number of regions + 1... Show your work.
3. Calculate the P* using the given conditions under each problem. Show your work.

1void 030 S10 if(C1) I if(C2 && C3) { 4 5 6 S20; else { if(C4) L S3(); 9 S4(0; 10 else 12 13 do { if(C5) { 14 15 16 17 18 19 20 21 S50; else\ S60; } while(C6) S70; 23 For P*, suppose the do loop (Line 13) is executed exactly 4 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
