JMU
logoWeatherBits.gif
Going Further on Programming Assignment 5


This question/problem/task allows you to go further on Programming Assignment 5. It is neither required nor for extra credit. It will, however, help you gain a deeper understanding of the material.
1 Getting Started: Fist, download the following class:

This class has a getTemperatureAndWindSpeed() function that is passed a String containing the 4-character ICAO code and returns a space-delimited String containing the ICAO code, the temperature (in degrees Farenheit), and the wind speed (in mi/hr). To use this class, you must have an active Internet connection.

Next, make a copy of your working ChillMapper.java file for safe keeping.

2 Using Real-Time Data: Modify your ChillMapper class so that, if there are multiple command-line arguments and those that should be a String representation of a double value can't be converted into a double, it treats each of them as an ICAO code and downloads and displays real-time wind chill values for each of the weather stations.

For example, is the command-line arguments are KSHD 5.0 13.0 it should work as before. If, instead, the command-line arguments are KCHO KSHD KIAD or KCHO KSHD it should retrieve real-time information for each of the stations and display the calculated wind chills on the map.

Copyright 2013