Copy these files to your local disk.
Use your text editor to modify the program Average.java so that it also finds the maximum of the numbers typed in. Note that you don't have to modify or compile the class Console.java; its method readInt is used by Average.java.
Hints:
Compile the java application as described on the previous page and run.
Write a Java application that reads in a set of floating point numbers, using Java type double, and computes the mean and standard deviation of these numbers.
You may fix the number of numbers, if you wish, or ask the user how many there are going to be.
In addition to the program Average.java, which computes the mean of a set of integers, you may wish to look at Volume.java to demonstrate the method readDouble.
As you read in numbers, you should store them into an array for later use in calculating the standard deviation.
For convenience sake, here is a text version of the equation for standard deviation. Assume that there are N numbers from x1 to xN and that the mean is written xbar.
stdev = sqrt( 1/N * (Sum from i=1 to N ((xbar - xi) ** 2)))
Hints:
Copy the examples Square.java and SquareTest.java to your local disk. Write your own class Rectangle.java and an application RectangleTest.java that asks the uses to type in the width and height of a rectangle, creates this rectangle, and prints out the area and perimeter.
Hints: