Write a program that will allows the user to enter a list of up to 10 positive numbers (entering 0 or a negative number or entering the tenth value) ends the input operation.
Your program will display the values entered as well as the smallest and largest values as well as their average.
Your program will contain the following methods, which you will write:
readArray()
- which will read the inputted
values and return the number of values in the array.writeArray()
- which will display the values
in the array on the screen. getMinimum()
- which returns the smallest
value in the array.getMaximum()
- which returns the largest
value in the array.getAverage()
- which returns the mean of
the array.printResults()
- which displays the minimum,
maximum and mean of the array on the screen.