For the "average" function do the following: public class Average { public int average(int k, int[] list){ int average = 0; int n = Math.min(k, list.length); if( n > 0) { for(int i = 0 ; i


read carefully and do all the steps please.


For the
0) { for(int i = 0 ; i < n;="" i++){="" average="" +="list[i];" }="" average="average/n;" 1.="" 2.="" 3.="" 4.="" 5.="" 6.="" 7.="" 8.="" 9.="" return="" average;="" 10.="" }}="" generate="" boundary="" value="" test="" cases.="" b.="" implement="" the="" average="" function="" in="" a="" class="" average="" and="" generate="" test="" cases="" using="" junit.="" compile="" and="" run="" the="" test="" cases.="" record="" any="" failures="" and="" errors="" that="" are="" reported.="" analyze="" and="" briefly="" explain="" why="" each="" of="" the="" failures="" and="" errors="" occurs="" and="" how="" you="" fix="" them.="" correct="" all="" the="" failures="" and="" errors="" until="" the="" cut="" passes="" all="" the="" test="" cases.="" d.="" measure="" the="" code="" coverage="" using="" cobertura="" or="" other="" coverage="" tool.="" your="" test="" case="" must="" achieve="" 100%="" branch="" coverage.="" (cobertura="" is="" described="" in="" appendix="" c)="" a.="" с.="" "/="">
Extracted text: For the "average" function do the following: public class Average { public int average(int k, int[] list){ int average = 0; int n = Math.min(k, list.length); if( n > 0) { for(int i = 0 ; i < n;="" i++){="" average="" +="list[i];" }="" average="average/n;" 1.="" 2.="" 3.="" 4.="" 5.="" 6.="" 7.="" 8.="" 9.="" return="" average;="" 10.="" }}="" generate="" boundary="" value="" test="" cases.="" b.="" implement="" the="" average="" function="" in="" a="" class="" average="" and="" generate="" test="" cases="" using="" junit.="" compile="" and="" run="" the="" test="" cases.="" record="" any="" failures="" and="" errors="" that="" are="" reported.="" analyze="" and="" briefly="" explain="" why="" each="" of="" the="" failures="" and="" errors="" occurs="" and="" how="" you="" fix="" them.="" correct="" all="" the="" failures="" and="" errors="" until="" the="" cut="" passes="" all="" the="" test="" cases.="" d.="" measure="" the="" code="" coverage="" using="" cobertura="" or="" other="" coverage="" tool.="" your="" test="" case="" must="" achieve="" 100%="" branch="" coverage.="" (cobertura="" is="" described="" in="" appendix="" c)="" a.="">

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here