Question: ~ Make it plausible that the formula for the cyclomatic complexity should read CV = e n + p + 1 rather than CV =

~ Make it plausible that the formula for the cyclomatic complexity should read CV = e n + p + 1 rather than CV = e n + 2p. (Hint: consider the following program:

begin if A then B else C endif;

call P;

print(”done”)

en procedure P;
begin if X then Y else Z endif end P;
Draw the flow graph for this program as well as for the program obtained by substituting the body of procedure P inline. Determine the cyclomatic complexity of both variants, using both formulae. See also (Henderson Sellers, 1992).)

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 Software Testing And Quality Assurance Questions!