Climate Data Processing
CS 3358

Due: Wednesday 1/23/08 at 10:00pm
50 points


For this assignment we will be using the actual data for carbon dioxide levels from the National Oceanic and Atmospheric Administration from a station in Hawaii. We will be creating a class that can calculate various averages and differences over time from the raw data. The main purpose of this program is to learn the tools for the course and to use multi-file programs.

We will be using a statistics class (which you will write) to calculate and report on the climate data.

Input:  You will get the file name from the command line of the program. e.g.

linux prompt> ./analyze
co2_mm_mlo.txt


Here is an example data file.


Note: The data has a lot of text at the beginning. Read in each word of the file until you reach a line that has "MLO" as the first word. At that point you can start reading the floating point CO2 levels from the data.

Processing:  You will need to determine the highest, lowest, and average CO2 level in the data. You will also need to calculate the standard deviation of the data. Essentially you are testing the Stats class with this application.

Here is the stats.h header file.

Output: You should provide a main program that reads in the data and provides the appropriate output. Use functions where necessary. Output will go to standard output (the screen). 



Notes:

Turn in:  No hard copy source file turnin.

Submit: Using this link, the source file (.cpp)  


Updated: 1/9/08 rlp