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. Show your work.
3. Calculate the P* using the given conditions under each problem. Show your work.

void Q10){ if(C1) S2; if(C2){ S3; else{ S4; else if(C3&C4){ 55; else{ S6; S8; 19 } Hint: 1 if (C1 && C2) 2 S1; 3 else 4 S2; For the program slice above, the program graph should be drawn below: void Q10){ if(C1) S2; if(C2){ S3; else{ S4; else if(C3&C4){ 55; else{ S6; S8; 19 } Hint: 1 if (C1 && C2) 2 S1; 3 else 4 S2; For the program slice above, the program graph should be drawn below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
