|
More Statistics
At this point, we have reviewed many of the methods, properties and techniques of handling data from CS20 (but not everything). Our graphic user interface has served its purpose and it's time to develop something more suitable.
We are going to start a new project (sort of like starting over again but not really) and use the subroutines of the current project as building blocks for the new one.
Our goal is to present some simple statistics about the temperatures for the year 2004, to the user. Specifically, lets let the user pick a month and a day then we will have the computer process the high, low, and average (mean) temperature for the day, the chosen month, and the year. Obviously the yearly stats won't change much for the year if we only use the year 2004. We've written most of these routines already.
A model of the problem would look something like the following:

The user interface should allow four events to occur.
- Pick a month
- Pick a day
- Process information
- Quit the program
Here is just a sample user interface.
 
|