This should your previous programs to gain additional insight and program
on your own. You have an input file like this:
columns 1 - 21: student name (pic x(21)) columns 22 - 24: test score #1 (pic 999 because a student could get 100 on a test) columns 25 - 27: test score #2 (pic 999) columns 28 - 30: test score #3 (pic 999) columns 31 - 33: test score #4 (pic 999)
Output:
Have three heading lines:
Have a detail line giving the
Processing: Read the input file and calculate the total points and the
average points.
ADD TEST1-IN, TEST2-IN, TEST3-IN, TEST4-IN GIVING TOTAL
DIVIDE TOTAL BY 4 GIVING AVERAGE
MOVE TOTAL TO TOTAL-OUT
other move statements
WRITE REPORT-RECORD FROM DETAIL-LINE.
Link to data file
Deliverables to bruce.white@quinnipiac.edu
copy of the code copy of the output
Last modified by Bruce White on 12/04/03