Assignment 9

Due Friday, Nov 19, 04, by midnight.

CSIT 121 Section 1 quizzes records (two quizzes were given so far) are available in an array A of type float. Each row of the array contains a record of one student; the first element of the row is his/her SSN (no dashes and no space), the second is his/her grade in Quiz 1, and the third is his/her grade in Quiz2. Write a void function with 4 parameters; A: a two-dimensional array of type float (with 3 columns), r: the number of rows of A, a1: a reference parameter of type float, a2: a reference parameter of type float. The function should compute the average in Quiz 1 and return it via parameter a1 and the average in Quiz2 and return it via parameter a2. Write a driver program to test your function. Assume the maximum number of rows is 100, but let the user enter the actual number of rows and then enter the array.