Question: 1. For the following code, create the corresponding flow graph, then identify the number of edges, number of nodes, and number of nodes that have
1. For the following code, create the corresponding flow graph, then identify the number of edges, number of nodes, and number of nodes that have exit points to calculate the cyclomatic complexity of the code fragment.
IF A = 10 THEN
IF B > C THEN
A = B
ELSE
A = C
ENDIF
ENDIF
Print A
Print B
Print C
Submit the flow graph and identified values for all variables in the equation MCC = E - N + P used to calculate the cyclomatic complexity.
How can you determining cyclomatic complexity be useful from risk management perspective in different phases of software development lifecycle? Why? Make sure to address at least 2 different phases in your response. (Be detailed as possible)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
