logo

Software Engineering Assignments

   

Added on  2019-09-21

5 Pages676 Words187 Views
 | 
 | 
 | 
Question 2) 1.public static void main(string args[]){2.float x,y; int a,b;3.read(x);4.read(y);5.if((x == 0) ||(y>0))6.y = y/x;7.else x = y+2;8.system.out.println(x);9.system.out.println(y);10.call addition(a,b);11.}12.Public void addition(int a, int b){13. System.out.println(a+b);14.}1.Set of test cases for the condition coverageTest Case 1: x = 0 y = 2s // trueTest Case 2: x = 5 y = -2 // false2.Set of test cases for the path coverageTest Case: a = 10 b = 20
Software Engineering Assignments_1

Software Engineering Assignments_2

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents