Question: Question 1 ( worth 0 . 5 % ) : Write a Java program that will compare the averages of two double arrays. Both lists
Question worth :
Write a Java 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
Question worth :
Write a Java program that will ask the user to enter the size of an integer array. Then the program will prompt the user to enter the values. The program will then use the array to find and print the sum and average.
Test your program on
Array size
Values:
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
