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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started