1. (15 points) Draw the program graph. You must use line numbers to label all nodes in the graph. Do not use the stateme
Posted: Fri Jul 01, 2022 5:35 am
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 1: 123 & in 69 4 5 7 8 9 10 11 12 13 14 16 17 18 19 void Q1() { $1; } if (C1 && C2 && C3) { S2; } else if (C4) { $3; if (C5) { } else { } $7; else { } $6; $4; $5;
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 Problem 1: 123 & in 69 4 5 7 8 9 10 11 12 13 14 16 17 18 19 void Q1() { $1; } if (C1 && C2 && C3) { S2; } else if (C4) { $3; if (C5) { } else { } $7; else { } $6; $4; $5;