
Students' Guide to
Program
Design
9.4 Multiple-level control break
Algorithms to print reports which produce single-level control break
totals have already been covered. Often, however, reports are required
to include multiple-level control break totals. For instance, the Sales
Report produced in section 9.3 may require sales totals for each
salesperson in the company, and also, sales totals for each department
within the company
The Monthly Sales Report might then look like this:
MULTI-DISK COMPUTER COMPANY
12/05/89 SALES REPORT PAGE: 1
DEPT SALESPERSON SALESPERSON PRODUCT QTY PRICE EXTENSION
NUMBER NAME NUMBER SOLD AMOUNT
01 1001 MARY SMIT ...