Department of Computer Science

PAD II

Spring Semester 1998

Dr. Maury Eggen

Homework Laboratory Assignment 1:


1 69	46	10	10	7	7	9	8	7	20	
2 69	76	11	11	9	8	13	11	9	19
3 75	61	10	12	8	10	11	7	20	14	
4 83	42	9	11	6	8	19	20	10	20
5 94	91	18	20	9	9	19	20	12	20
6 77	81	19	19	5	8	15	18	19	18 
0 100	100	20	20	10	10	20	20	20	20

The above data represents grades earned in Dr. Eggen's CS II class part way through the semester. The zeroth column is a number designation for the student. The row with student id 0 represents points possible. You don't know (in advance) how many students there are, nor do you know how many grades have been assigned at this point in the semester (your program must determine these things). Prepare a report for Dr. Eggen indicating the average for each student, and suggest a grade. Also give the average score on each exam or project. The exam scores are in columns one and two. Which student had the highest score for exam 1? for exam 2? Use dynamic memory and a single two dimensional array to hold the data. Program due date: Friday, 23 Jan 98. 20 points.

Standard handin requirements.