Question: Answer the following question using the program and list of mutants 1 int triangle (int a, int b, int c) { 2 if (a c

 Answer the following question using the program and list of mutants

Answer the following question using the program and list of mutants 1 int triangle (int a, int b, int c) { 2 if (a c && a + c> b &&b + c> a)) { return 4; //invalid } if (a == b && b == c) { return 1; // equilateral } if(a == b || b == c || a == c ) { return 2; // isosceles } return 3; // scalene } List of mutant Mutant 1 (Line number 2): if (b c && a + c > b && b + c > a)) Mutant 4 (Line number 11): if (a == b || b == c || a > = c) Test cases {(0, 1, 1), (1, 1, 3), (2, 2, 2), (2, 2, 3), (2, 3, 4)} Compute mutation score Design more test cases to kill all mutants above

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!