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 (4 elements)
The program prompt the user to enter the values of array1
the program will prompt the user to enter the values of array2
call the method
public static double Avg (double [] array)
passing to it array1 and storing avg1
then call it again and pass to it array2 and storing avg2
compare the two averages and print a message: "Avg of array 1 greater than or equal to array 2" or "Avg of array 1 is less than array 2.

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!