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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!