New Jersey Institute of Technology
College of Computing Sciences
CIS365: File Structures and Management
Professor Rich Egan

A Public Research University

Quick Links:  [WebCT access/info


Semester Project - P5: Control Breaks

Goal: To apply the concepts and skills we're learning in class to a larger case.

Due Date: See Syllabus

Assignment

Design a data file where the records can be grouped at two levels, so you can use it for a report with two levels of control breaks. Then design two reports. One report will group the records by the major control break field, and thus have a single-level control break. The second report use the same data file. It will group the records by the major control break field as well as by a minor control break field, and thus be a two-level control break report. Stern & Stern chapter 10 gives several examples. (For the extra credit program below, make sure that that the data file's records can be grouped at three different levels.)

(1) Write a COBOL program to create the data file.

(2) Write a COBOL program to create the first report with this data file with a single-level control break. The first thing your program should do is sort the data file on the control break field. (See Stern & Stern chapter 14 for simple sorting.) Then use the sorted data file for your report. The report should include one or more subtotals (sum, count of records, etc.) printed at each control break. It also should print these totals for all the records at the end of the report.

(3) Once you have this working, write a second COBOL program to create the second report with this data file with a two-level control break. The first thing your program should do is sort the data file on both the major and minor control break fields. Then use the sorted data file for your report. The report should include one or more subtotals (sum, count of records, etc.) printed at each minor control break and each major control break. It also should print these totals for all the records at the end of the report.

(4) For extra credit, write a third COBOL program that creates a report with this data file with a three-level control break. The report should include one or more subtotals (sum, count of records, etc.) printed at each control break. It also should print these totals for all the records at the end of the report.

Submission

Staple everything together. Put the name of everyone in your group on the front. Be sure to include your name. Only one submission per group, please.

Turn in:

Responsibility

Even though this is a group project, every member of the group should understand every aspect of the project. Your group should get together after each homework assignment is complete and review the entire assignment to ensure that everyone understands everything.


last updated: 8/28/03

This page: p5.htm