A Java Course Outline
Using the Java By Dissection book
by Ira Pohl and Charlie McDowell

 



Homework 7 - Array Programming and Statistics

Statistics provide a way to characterize a data set. This exercise uses an array to store data for analysis. Read n from the console where n is the number of data values to analyze. Generate n elements whose value is between 0-99 using Math.random() placing these elements in a data array. Then compute:

1. minimum and maximum elements

2.

3.

4.

Print your data and explain its meaning with appropriate column headings or remarks. Print out the various computed statistics in a readable fashion.


Feel free to report any site problems to the Webmaster, Debra Dolsberry.