Computer Science 121
Assignment 8
Due: April 21, 2004

For this assignment, you are to write a program that reads in rainfall amounts from the keyboard and stores them in an array. It then should calculate the average amount of rain and the largest rainfall amount. These should be displayed on the screen. Finally it should display the entire contents of the array on the screen.

Since you will not know how many days have had rain, you should use a while loop to read them in and keep a count of how many were read.   Make your array size at least 31 and either read them in one at a time on separate lines or on a single line.  If they are all on one line, you will need a StringTokenizer to access the individual numbers.  In either case, make sure that you prompt the user to enter the data.

Finally you should hand in a description of how you went about designing and writing the program. Use a word processor and write this on a separate sheet of paper.