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: (30pts)
Procedure SaleSalary (n: integer, key, task : array[1..n] of integer, name: array[1..n] of string, level : integer, personname: string)
var j, salary: double; promotion : double begin
salary :=0;
i:=0;
personname := null;
for j:=1 to n do
if )=(task[j] then salary := salary +100
promotion := salary * task / key;
endif
if (promotion 0.2) then level :=0
else if (promotion 0.2 & & promotion 0.4) then level :=1; task :=1;
else if (promotion 0.4&& promotion 0.6) then level :=2; task :=2;
else level :=3; task :=3;
endif
update personname;
key++;
endfor
end
You need to follow the following steps:
Develop the control flow graph for the above pseudo code (10pts)
Calculate the cyclomatic complexity correctly (8pts)
Identify all independent paths correspondingly (12pts)
III. Please identify the test cases for the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!