Question: 3 ( a ) All Paths Coverage and Control Flow Graphs [ 2 5 marks ] [ 8 marks ] public static Status freeDelivery (
a All Paths Coverage and Control Flow Graphs
marks
marks
public static Status freeDelivery
long rewardPoints, boolean localCustomer
Status rv Status. INVALID;
long limit localCustomer :;
long jumplimit localCustomer :;
if rewardPoints
if rewardPoints jumpLimit
rewardPoints limit;
if rewardPoints jumpLimit
rewardPoints limit;
rewardPoints jumpLimit ;
if rewardPoints limit
Status.FREEDEL;
else
rv Status. CHARGEDEL;
return rv;
Using the all paths coverage and control flow graphs techniques, correctly connect the nodes given in the righthand side of the above figure. To do so use the code given in the lefthand side of the above figure.
Correctly answer the following answer to gain the marks
i What node or nodes are reached from Node
ii What node or nodes are reached from Node
iii. What node or nodes are reached from Node
iv What node or nodes are reached from Node
b Correctly answer the following to gain the marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
