CPS 125 

				Alexander Ferworn

					LAB 10

Purpose: This lab is to give you practice in writing C programs
involving two-dimensional arrays and user defined functions.

You are to write a C program to input a two dimensional
array from a data file lab10.data using one function to input and
echo the array, and another to produce its transpose and output
this transposed array to the screen.

The data for the array is found in the MATRIX directory
/home/t4a/cps125aa/lab10. The maximum size of the array will be
10 x 10, but your program must be able to handle an array of any
size up to this maximum.  The first line of the data file
contains a single integer, the number of array elements in each
row (the same for all rows).  However, as no row size information
is contained in the data file the first function, named inpt_fun,
will have to count the number of rows in the data as it is being
input into a two-dimensional array.  The two dimensions
determined in inpt_fun will be used (along with the array) in the
transposing function named trnsp_and_output_fun. No input at all
is to be performed in this second function.  The main function
should invoke the two other functions.  

The program output to the screen should echo the input data
(output it in the same rectangular form as in the data file),
followed by the transposed array, both properly identified by
brief labelling.