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 Q30){ S1; if(C1){ S2; for($3;C2;54){ S5; if(C3) S6; else{ if(C4&C5){ S7; 58; S9; 19 } For P*, suppose the for loop defined by Line 5 may be executed anywhere from 1 to 3 times. void Q30){ S1; if(C1){ S2; for($3;C2;54){ S5; if(C3) S6; else{ if(C4&C5){ S7; 58; S9; 19 } For P*, suppose the for loop defined by Line 5 may be executed anywhere from 1 to 3 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
