Question: Write java code below: You are an intern at a local animal sanctuary. One of your tasks is to record how many pounds of bamboo
Write java code below: You are an intern at a local animal sanctuary. One of your tasks is to record how many pounds of bamboo the pandas consume daily for 10 days. Write a program to calculate and return the average weight based on the data.
Before calculating the average, you decide to throw out the lowest and highest values.
Your method should do the following: declare and initialize the array with the recorded weights such as 43.1 determine the maximum and minimum values in the array compute the average of the array contents, excluding the maximum and minimum values (array methods may not be used) calculate and return the average, excluding the maximum and minimum values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
