Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started