Question: III. Please identify the test cases for the following code segment using basis path testing: ( 3 0 pts ) Procedure SaleSalary ( n: integer,
III. Please identify the test cases for the following code segment using basis path testing: pts
Procedure SaleSalary n: integer, key, task : arrayn of integer, name: arrayn of string, level : integer, personname: string
var salary: double; promotion : double begin
salary :;
:;
personname : null;
for : to do
if then salary : salary
promotion : salary task key;
endif
if promotion then level :
else if promotion & & promotion then level :; task :;
else if promotion && promotion then level :; task :;
else level :; task :;
endif
update personname;
key;
endfor
end
You need to follow the following steps:
Develop the control flow graph for the above pseudo code pts
Calculate the cyclomatic complexity correctly pts
Identify all independent paths correspondingly pts
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
