Question: I only need help with problems 2.5 thru 2.7, any help is great! 2. (65 points) For the average function do the following: public class


I only need help with problems 2.5 thru 2.7, any help is great!
2. (65 points) For the average function do the following: public class Average public int average(int k, intl] list)X nt average 0, nt n Math.min(k, list.lenatb) if(n>0) 2. 3. 4 5. 6. average += list[i]; average - average, 9 return average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
