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.1. Draw the program graph. You must use line numbers to label

Problem 3: 1 void Q30 t 2 S10 if(C1) if(C2 && C3) 4 S20 else 6 if(C4) t 7 S30 9 10 S40 else 12 13 14 15 16 17 18 19 20 21 0 if(C5) S50 else S60 while(C6) S70 231 For P, suppose the do loop (Line 13) is executed exactly 4 times. Problem 3: 1 void Q30 t 2 S10 if(C1) if(C2 && C3) 4 S20 else 6 if(C4) t 7 S30 9 10 S40 else 12 13 14 15 16 17 18 19 20 21 0 if(C5) S50 else S60 while(C6) S70 231 For P, suppose the do loop (Line 13) is executed exactly 4 times

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!