Instructions for Program 4


Program 4 is an enhancement of program 2, the class roster. In this version you are to add a control break on class code. For each class print a subtotal line that shows the number of students in that class. In addition, the subtotal line should show the highest and lowest GPA within that class. (Hint: This requires using Greater Than and Less Than comparisons.)

As an example, your subtotal lines for the first two class codes (freshmen and sophomores) may look something like this:


 Total students in class 1:  10    Low GPA: 2.39   High GPA: 4.00
 Total students in class 2:  25    Low GPA: 0.00   High GPA  4.00

The input data for program 4 is the same data used for program 2 except that I have pre-sorted it for you by class code.


Cobol Home