160) size = "L"; if (height > 130) size = "M"; if (height Suppose you are asked to test the code below String getClothSize(int height){ String size; if (height > 185) size = "XL"; if (height > 160)...


Suppose you are asked to test the code below<br>String getClothSize(int height){<br>String size;<br>if (height > 185)<br>size =
160) size = "L"; if (height > 130) size = "M"; if (height < 130)="" size="S" ;="" return="" size;="" 1.="" list="" the="" minimum="" set="" of="" test="" cases/inputs="" that="" will="" achieve="" 100%="" statement/line="" coverage.="" you="" need="" to="" specify="" the="" line(s)="" each="" input="" covers.="" 2.="" list="" the="" minimum="" set="" of="" test="" cases/inputs="" that="" will="" achieve="" 100%="" branch="" coverage.="" you="" need="" to="" specify="" the="" branch(es)="" each="" input="" covers.="" 3.="" explain="" if="" executing="" the="" test="" suites="" above="" will="" reveal="" any="" defects.="" please="" do="" not="" use="" html="" formatting="" (such="" as="" tables)="" when="" answering="" the="" questions="" as="" the="" asnwers="" are="" recorded="" as="" plain="" text.="" "/="">
Extracted text: Suppose you are asked to test the code below String getClothSize(int height){ String size; if (height > 185) size = "XL"; if (height > 160) size = "L"; if (height > 130) size = "M"; if (height < 130)="" size="S" ;="" return="" size;="" 1.="" list="" the="" minimum="" set="" of="" test="" cases/inputs="" that="" will="" achieve="" 100%="" statement/line="" coverage.="" you="" need="" to="" specify="" the="" line(s)="" each="" input="" covers.="" 2.="" list="" the="" minimum="" set="" of="" test="" cases/inputs="" that="" will="" achieve="" 100%="" branch="" coverage.="" you="" need="" to="" specify="" the="" branch(es)="" each="" input="" covers.="" 3.="" explain="" if="" executing="" the="" test="" suites="" above="" will="" reveal="" any="" defects.="" please="" do="" not="" use="" html="" formatting="" (such="" as="" tables)="" when="" answering="" the="" questions="" as="" the="" asnwers="" are="" recorded="" as="" plain="">

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here