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 helpis great! 2. (65 points) For the average function do the following:

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

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!