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:
- Draw Control Flow Graph for the given code
- Highlight all regions in the flow graph separately
- 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
Get step-by-step solutions from verified subject matter experts
