Assignment #5 – Climate Change
Global Warming/ Climate change project
Input: weather data for months of several years – tab delimited file – average temperature for the month. The data file is attached – real NYC temperature data:

Average Monthly & Annual Temperatures at Central Park, from:

http://www.erh.noaa.gov/okx/climate/records/monthannualtemp.html

– note that I already put it into a tab delimited file without the header line with the month names

Use the Matrix class to hold the weather data.
Do not include the year – only the monthly averages.

Write a WeatherMenu to display numbered choices to the user of what to query from the weather data. Read and return the choice in as an int.
Examples:
1. Average temperature for a given year
2. Highest temperature for a given year
3. Average temperature for a given month
4. Highest temperature for a given month

Use command line arguments: name of file, starting year
Some reminders:
To set the command line arguments from the Visual Studio IDE: right click on the project name and select properties
Be sure the input file is in the same directory as main.cpp
Be sure the file is named correctly in the command line args

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: