CS 2401 Assignment #2

Due Date: Sunday, February 7, 2010.

Objective: The goal of this assignment is to practice using 2-dimensional arrays.

Background: To study climate change in El Paso area, UTEP students record the temperature and the wind speed at different locations within the city on different days. Temperature measurements are placed in a file, each line corresponding to one day of measurements, in each line we first place measurements from the 0-th location (temperature first), then measurements at the 1st location, etc.

Example. A file

68.0 5.2 71.0 6.3
66.5 3.1 69.5 4.9
means the following:

Assignment: Write a program that, first, stores the measurement results (which are originally given in a file) in two two-dimensional arrays: the temperature array and the wind speed array. Your program should include the following methods: