Here is the Problem: ANY HELP IS MUCH APPRECIATED
Here are the input fields: plant no., dept no., employee no., lastname, firstname, earnings this period(per employee), earnings year to date(per employee).
thd input earnings record has been sequenced by employee number, within dept no, within plant no.
Here is what the assignment asks for:
1. Process each input record.
2. Print the 5 heading lines on the first page and each page thereafter
a. the first record of the file should be the "period ending" date record and stored in the first heading lind
b. print the run date on the second heading line
c. accumulate and print the page number on the third heading line
d. print the plant identification (as explained below) on the fourth heading line
3. Whenever a new plant group is started, skip to a new report page. IN other words, each plant control group should be on a separate page.
a. the abbreviation stored in the plant field should be converted to the complete plant identification as follows:
ATL - atlantic
CTL - central
MTN - mountain
PAC - pacific
b. the applicable plant identification should be printed on the fourth heading line of each page.
4. For each input earnings record, do the following processing:
a. on the detail line, provide the group indication for the plant and department number fields. That is, print the plant field only on the first detail line of the page and on the first detail line when the plant changes. Print the department number field only on the first detail line of each page and on the first detail line when the value of the department number field changes.
b. print an output detail line as specified on the print chart.
c. accumulate the THis-Period earnings and YTD earnings fields.
5. Print the control total lines as follows:
a. whenever the department number and/or plant no changes, print a department number control total line (one asterisk total ) as shown on the print chart
b. whenever the plant changes, print a plant control total line (two asterisk total) as shown on the print chart. PRint the plant identification on this line as explained in 3a
6. accumulate the plant control totals into a report total. after all input records have been processed, print the report total line
7. Provide for a span of 54 lines per page. Do not permit control total lines to be printed at the top of a new page.
line spacing to be handles as follows:
single space each detail line (except 1 double spaced line between the last headin line and the first detail line on each page and 2 double spaced between the cointrol total line and the next control group
double space the department number countrol total line form the preceeding detail line
double space the plant control total line from the preceeding department number control total line
triple space the report total lione from the preceeding plant control total line
ANY HELP ANYONE CAN GIVE WITH THIS IS MUCH APPRECIATED