Question: SUBJECT: SOFTWARE ENGINEERING PROCESS Read the code carefully and perform the following tasks: Draw Control Flow Graph for the given code Highlight all regions in

SUBJECT: SOFTWARE ENGINEERING PROCESS

Read the code carefully and perform the following tasks:

  1. Draw Control Flow Graph for the given code
  2. Highlight all regions in the flow graph separately
  3. Using cyclomatic complexity formula, calculate number of basis path tests.

Show path of each basis path test separately.

while(x<100)

{

if(a[x]%2==0)

{ parity=0; }

else

{ parity=1; }

switch(parity)

{ case 0:

cout<

case1:

cout<

default:

cout<

}

x++;

} p=true;

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!