Question: Consider the following program: read(x); read(y); if (x>0) then if (y>5) then write (high five); end if; y = y - 5; else x

Consider the following program: read(x); read(y); if (x>0) then if (y>5) then write ("high five"); end if; y = y - 5; else x = y + x; end if; 1) Draw the control flow graph (CFG). 2) Give a minimal test set that ensures full statement coverage 3) Label the edges in the CFG, then list all the paths in the CFG. 4) Is there a minimal test set that ensures full path coverage? If so, provide one; otherwise, explain the reasons.
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
