Question: Write a program that will compare the averages of two double arrays. Both lists have the same length ( 4 elements ) The program prompt
Write a program that will compare the averages of two double arrays.
Both lists have the same length elements
The program prompt the user to enter the values of array
the program will prompt the user to enter the values of array
call the method
public static double Avg double array
passing to it array and storing avg
then call it again and pass to it array and storing avg
compare the two averages and print a message: "Avg of array greater than or equal to array or "Avg of array is less than array
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
