Consider the following code: 1. float foo (int a, int b, int c, int…

Question Answered step-by-step Consider the following code: 1. float foo (int a, int b, int c, int… Consider the following code: 1. float foo (int a, int b, int c, int d, float e) { 2. float e; 3. if (a == 0) { 4. return 0; 5. } 6. int x = 0; 7. if ((a==b) || ((c == d) && bug(a) )) { 8. x=1; 9. } 10. e = 1/x; 11. return e; 12. } Function bug(a) should return a value of true when passed a value of a=1. Build: • a test suite for 100% statement coverage • a test suite for 100% branch coverage • a test suite for 100% condition coverage  Computer Science Engineering & Technology Object-Oriented Programming SE 433 Share QuestionEmailCopy link Comments (0)