statement fragments themselves as labels. 2. (5 points) Compute the cyclomatic number using each of the three methods discussed in the lectures. Show your work. 3. (5 points) Calculate P* using the given conditions for each problem. Show your work.
Problem 2: 123 5 5 789 SHANGAAA72222 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 void Q2() { $1; } if (C1) { } else { } $9; for (S2; C2; S3) { } else { if (C3 && C4) { $4; } } else { } if (C5 && C6 ) { $6; If (C7){ } $5; S8; S7; For P, assume that the for loop (line 4) executes exactly 4 times.
1. (15 points) Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the statements or 1. (15 points) Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the stateme
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am