CS 1323 Section 30, Spring 1997
Individual Project 8
Data Normalization Revisited
Due Wednesday, April 30, 3:30pm
Grace Period: April 30 - 4:30pm May 8
no lateness penalty for projects submitted during
the grace period
What to Hand In (see also:
example project solution)
- A
Program Organization Chart
exhibiting the interactions between major program
components. Attach a report to the chart
providing a rationale for the program organization.
- A chart illustrating the major data structures your
program uses, the transformations they undergo, and
the components of your program responsible for these
transformations
- A
listing
of the C program you write for your
project, following the required
standards.
- A
session transcript
in which
compile and run
your progrm
to demonstrate its capabilities
- A printed copy of each of the files your program reads
during the demonstration session.
The Program You Must Write
Write a program that
retrieves data from the file
rainonly.dat
(available on the Supplied Software page of the class web site),
normalizes the data,
and displays the
normalized data on the screen.
- Data Format
of
rainonly.dat
Heading Lines.
There are no heading lines in the data file.
Data Lines.
Each subsequent line of the data file
contains the rainfall amounts for each month in one year
of a data collection period. The first number on the
line gives the January rainfall, the second, the February
rainfall, and so one through the twelfth number, which
gives the December rainfall. The number of years in the
data collection period, which you may assume is more than
one and not more than 50, is the number of lines in the
data file.
- Display Format
Data Lines.
Line up the numbers in columns, so that the normalized
January rainfall figures for all years in the data collecction
period line up in a vertical column down the screen,
the February figures form another column, and so on
through the December column.
- Data Normalization
Normalize the columns of numbers in the data so that they all have
unit standard deviation. That is, divide each of the numbers
in the k-th column by the standard deviation of the numbers
in the k-th column. (The k-th column consists
of the k-th number from each of the data lines.)
Ground Rules
- Your program may assume that the input file contains
rainfall figures for each of the twelve months in
each year of the data collection period. That is,
each line of the data file will contain exactly
twelve numbers.
- Your program may assume that the data collection period
is at least two years, but not more than fifty years.
That is, the input file contains
at least two and no more
than fifty lines, each of which contains the monthly
rainfall amounts for one year in the data collection period.
- Your program must
not assume any specific value for the
number of years in the data collection period.
- Your program must contain definitions of functions organized in
modules, and it must make profitable use of them.
- Your program may use any aspects of C covered in class or in the
assigned readings in the C textbook, but it must not use any
aspects of C not covered in lectures or assigned readings.
- The
Project Style Guide
describes additional requirements.
CS 1323 Section 30 - Fundamentals of Computer Programming -
Spring 1997
Instructor:
Rex Page
(Email: page@ou.edu)
Up to: Welcome Page ~~~
Up to: University of Oklahoma ~~~
Go to:
Next Semester ~~~
Go to:
Previous Semester