Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started