Question: a) Briefly discuss the difference between two designs depicted in Figure II, explaining advantages and disadvantages of both. [7 Marks] dependen's Handler +handle Visual Pampoms

 a) Briefly discuss the difference between two designs depicted in Figure

a) Briefly discuss the difference between two designs depicted in Figure II, explaining advantages and disadvantages of both. [7 Marks] dependen's Handler +handle Visual Pampoms interface>>Wayuersity of London Handler +handle() Class B +operation(a : Handler): int ClassB 1+operation Ala : HandlerA): int +operation B(b: HandlerB): int Design 1 Design 2 Handler HandlerB HandlerB +handle() 299792458) /o objects travels faster than speed of light return Double.POSITIVE_INFINITY; //incorrect speed if(speed > 1) return speed * 0.000621271; // convert to miles } i) List the minimum set of test inputs that will achieve 100% statement coverage (for each test input specify the statement(s) it covers). ii) List the minimum set of test inputs that will achieve 100% branch coverage (for each test input specify the branch(es) it covers). iii) Briefly discuss if the execution results of the test sets above reveal any bugs in the code? [10 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!