Question: Need help on java on H/W. Thanks Write a program that uses an array to find the Average of 10 double values. Use Math. random()

 Need help on java on H/W. Thanks Write a program that

Need help on java on H/W. Thanks

Write a program that uses an array to find the Average of 10 double values. Use Math. random() in combination with a for loop to fill the array with 10 random values. Then use a different for loop to iterate through the array when summing the total for all 10 double values. Attach Snipping photos of source code and output. If you are comfortable with Arrays, try to implement the same exercise using ArrayList. Note the difference between ArrayList and Array implementation

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!