ChillMapper
class is a main class that displays
wind chill values on a map (of Virginia).
The system must satisfy the following operational requirements:
OR-1
As with all main classes, the main()
method must be
passed a String[]
containing the command-line
arguments.
OR-2
If there are no command-line arguments, the system must
display a map containing wind chill values calculated from the
weather data in the file named "today.txt"
.
OR-3
If there is one command-line arguments, the system must
display a map containing wind chill values calculated from the
weather data in the file with the name contained in that argument
(e.g., "yesterday.txt"
).
OR-4 If there are 3, 6, 9, etc... command line arguments (i.e., if the number of command line arguments is a multiple of 3) then the system must display a map containing the wind chill values calculated from the weather data contained in the arguments.
OR-5 In all other cases, the system must not display a map.
OR-6 If either the temperature or the wind speed can't be converted into a valid double value for a particular station, that station must be ignored (but others must be processed).
OR-7
Regardless of the source of the weather data (i.e., whether it
is in a file or the command-line arguments), the system must use
the first value as a String
representation of the ICAO
code, the second value as a String
representation of
the temperature (in degrees Farenheit), and the third value
as a String
representation of the wind speed (in mi/hr).
OR-8
The main class must use the windChillNA()
function in
the Weather
class to calculate the wind chill values.
OR-9
The main class must use the setTemperature()
function in
the Map
class to display the temperatures on the map.
OR-10 The system must calculate and display the wind chill values for every station in the file or every station in the command-line arguments (depending on how the application is started). In the case of the former, there will be as many stations as there are lines in the file. In the case of the latter, there will be as many stations as there are command-line arguments divided by three.
Copyright 2013