Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

2. How can competencies be used in employee development?

Answered: 1 week ago