Objective
- Create a control break report
prevDept = "???" departmentTotal = 0 grandTotal = 0 recordNumber = 0 open report file output report headers to report file open the data file for each record in the data file recordNumber++ if department != prevDept and recordNumber != 1 output departmentTotal to report file add departmentTotal to grandTotal departmentTotal = 0 output record details to report file prevDept = department close data file output departmentTotal to report file add departmentTotal to grandTotal output grandTotal to report file output report footers to report file close report file