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.

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

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!