Question: Instructions Write a program to find the average in a list. Define three methods in the class: 1. main: call genList to obtain an array
Instructions Write a program to find the average in a list. Define three methods in the class: 1. main: call genList to obtain an array of 10 random numbers. Call method average to get the average value. Display the result. 2. double [] genList(int n ): generate n random numbers between 0 to 100. 2. double average(double [] list): find the mean value of list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
