Lab 5

Arrays, Array Lists, and Data Mining . . . Oh MY!!!

In this lab, we'll lay the foundations of data mining by entering and analyzing data in arrays.

Rainfall Class

Write a RainFall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following:

  • the total rainfall for the year
  • the average monthly rainfall
  • the month with the most rain
  • the month with the least rain