Question: use the code to do 1,2, and 3 (15 pts) 1. Draw the program graph. You must use line numbers to label all nodes in


use the code to do 1,2, and 3
(15 pts) 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 (5 pts) 2. Compute the cyclomatic number using each of the three methods discussed in class. Show your work. (5 pts) 3. Calculate the P" using the given conditions under each problem. Show your work. Problem 4 1 void Q400 S1; while(C1) while(C2K S3 while(C3) S4 if(C4X 10 S5 12 13 14 15 16 17 18 19 elsef S6 S7 For P, suppose the while loops defined by lines 3, 5, and 7 are executed exactly 1, 2, and 3 times respectively (15 pts) 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 (5 pts) 2. Compute the cyclomatic number using each of the three methods discussed in class. Show your work. (5 pts) 3. Calculate the P" using the given conditions under each problem. Show your work. Problem 4 1 void Q400 S1; while(C1) while(C2K S3 while(C3) S4 if(C4X 10 S5 12 13 14 15 16 17 18 19 elsef S6 S7 For P, suppose the while loops defined by lines 3, 5, and 7 are executed exactly 1, 2, and 3 times respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
