ProgrammingExercise-ParsingWeatherData
ProgrammingExercise-ParsingWeatherData
Assignment
You will write a program to find the c
oldest
day of the year and other interesting facts about the
temperature and humidity in a day. To test your program, you will use the
nc_weather
data
folder that has a folder for each year; you can download a .zip folder with these files by clicking
. In the
here year
folder there is a CSV file for every day of the year; each file has the following
eather20140108.csv
information. For example, in the 2014 folder, we show parts of the file w ,
the weather data from January 8, 2014.
You will write a program with several methods and tester methods to test each method you
write. You should start by understanding the methods from the lesson to find the hottest
Java Programming: Solving Problems with Software
temperature in a day (and thus in a file) and the hottest temperature in many files and their
tester methods. You can use these to write similar methods.
NOTE: Sometimes there was not a valid reading at a specific hour, so the temperature field says
9999. You should ignore these bogus temperature values when calculating the lowest temperature.
when the humidity was greater than or equal to value. You should also write a void
method named
testAverageTemperatureWithHighHumidityInFile()
to test this
method. When this method runs checking for humidity greater than or equal to 80 and
selects the file for January 20, 2014, the method should print out
No temperatures with that humidity
If you run the method checking for humidity greater than or equal to 80 and select the file
for March 20, 2014, a wetter day, the method should print out
Average Temp when high Humidity is 41.78666666666667