Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started