Question: What is returned from mystery when it is passed { 1 0 , 3 0 , 3 0 , 6 0 } ? public static

What is returned from mystery when it is passed {10,30,30,60}? public static double mystery(int[] arr) l
double output =0;
for (int i=0;i arr.length; i++)
{
output = output +arr[i];
}
return output / arr.length;
}
A.,17.5
B.,30.0
C.,130
D.32
E.,32.5
 What is returned from mystery when it is passed {10,30,30,60}? public

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!