Question: Software Maintenance SUBMISSION IS ONLY ACCEPTED THROUGH THE EDUGATE SYSTEM Based on the code provided below, solve the following questions: 3 1 public String Compute(int

Software Maintenance Software Maintenance SUBMISSION IS ONLY ACCEPTED THROUGH THE EDUGATE SYSTEM Based on

SUBMISSION IS ONLY ACCEPTED THROUGH THE EDUGATE SYSTEM Based on the code provided below, solve the following questions: 3 1 public String Compute(int (1 marks) 2{ int size=marks.length-1; int pass=0, fail-e, sumPass=, sumFail=0; int i=0 while( i==50) { pass++; sumPass++; } 13 else 14 { fail++; 16 sumFailut: } i++; 19 } 20 21 return "Average of Pass=" +(sumPass/pass)+" Average of fails="+(sumFail/fail); 22 ) 9 10 11 12 15 17 18 Question (1): Draw Program Dependency Graph (PDG) for the above shown program. [3 marks] Question (2): Find Program Slice for the above shown program under the slice criterion using Backward static slicing- [3 marks] Question (3): Find Dynamic Program Slice for the above shown program under the slice criterion [4 marks]

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 Databases Questions!