Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program description An invoice register is to be printed from the invoice file. It is to provide control break totals for each invoice. Input file

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Program description An invoice register is to be printed from the invoice file. It is to provide control break totals for each invoice. Input file Invoice file (Records are in ascending sequence according to the invoice number field. The first record in the file is an invoice date record.) Input record formats Invoice date record Invoice record RONNIN BNNN) W a uawa HUMBNOMINNNNNNNNNNN Record code (01) N N Customer name Product description Unit price #SORRENRER Record Invoice code (A2) number Qty. ordered Output file Invoice register Output report format LARARAARAAPA ENDERER Program operations 1. Read each input record. Output file Invoice register Output report format TELEFTIESIOGGER 111111111 MA DESEMBA ZITII MITID 12TDOCTO LR 22 ELLELLILLLEDERELL LLORAR ELCELORE TILLS ICCEEEEEEE IEEELLLELE IIIMOODICCCCCICEOCAKOIT M TTTTTTTTTTTT INITITUTT TTTTTTTTT WILL 1.227.11 .CL date record and stored in the first ord, the program processing should ter- tiplying the unit price by the quantity the print chart specifications. o number changes, print a control break invoice total line in ac- pecifications containing the following: ave been processed, print a report total line containing 2. The first record is to be an invoice date record. a. The date is to be extracted from the invoice date heading line as specified on the print chart. b. If the first record is not an invoice date record, the p minate. 3. For each invoice record, do the following processing a. Compute the extension amount by multiplying the ordered. b. Print a detail line in accordance with the print chart specie C. Accumulate the invoice total. 4. Whenever the invoice number changes, print a co cordance with the print chart specifications containing th a. The invoice number b. Total Invoice amount (total of extension amounts) c. Descriptive words and an asterisk as specified on the print 5. After all the input records have been processed, print a report to the total of all invoice totals printed. 8. Headings are to be printed on each page of the report. After 54 lines have on a report page and a new invoice record is to be printed, the program is to skip to the next page and print the report headings. (Do not allow the control break line to be printed on a report page which does not contain at least one detail line for the invoice number to which it applies.) a. The page number is to be incremented each time the heading is printed and displayed on the second heading-line in accordance with the format shown on the print chart. b. The run date is to be obtained from the operating system and printed on the second heading-line in accordance with the format shown on the print chart. 7. Line spacing is to be handled as follows: 2. The first detail-line after the headings is to be double-spaced from the last heading line.' b. Second and successive detail-lines for the same invoice number are to be single- spaced from one another. c. Each control break invoice total-line is to be double-spaced from the previous detail-line. d. The first detail-line following a control break invoice total-line is to be double- spaced from the invoice total-line. 8. Group indicate the printing of the Invoice Number field. SR SR 0799 9253 8359 3669 9010 Marafuga, Kevin Mcpherson, Styrone P Powers, Thomas M Rai, Prem Velozo, Briana M SR 3.000 3.000 3.000 3.000 3.000 CIS CIS CIS CIS CIS the What would be control break program Pls Domain: Shared/Standard Reports/Rosters COBOL Program description An invoice register is to be printed from the invoice file. It is to provide control break totals for each invoice. Input file Invoice file (Records are in ascending sequence according to the invoice number field. The first record in the file is an invoice date record.) Input record formats Invoice date record Invoice record RONNIN BNNN) W a uawa HUMBNOMINNNNNNNNNNN Record code (01) N N Customer name Product description Unit price #SORRENRER Record Invoice code (A2) number Qty. ordered Output file Invoice register Output report format LARARAARAAPA ENDERER Program operations 1. Read each input record. Output file Invoice register Output report format TELEFTIESIOGGER 111111111 MA DESEMBA ZITII MITID 12TDOCTO LR 22 ELLELLILLLEDERELL LLORAR ELCELORE TILLS ICCEEEEEEE IEEELLLELE IIIMOODICCCCCICEOCAKOIT M TTTTTTTTTTTT INITITUTT TTTTTTTTT WILL 1.227.11 .CL date record and stored in the first ord, the program processing should ter- tiplying the unit price by the quantity the print chart specifications. o number changes, print a control break invoice total line in ac- pecifications containing the following: ave been processed, print a report total line containing 2. The first record is to be an invoice date record. a. The date is to be extracted from the invoice date heading line as specified on the print chart. b. If the first record is not an invoice date record, the p minate. 3. For each invoice record, do the following processing a. Compute the extension amount by multiplying the ordered. b. Print a detail line in accordance with the print chart specie C. Accumulate the invoice total. 4. Whenever the invoice number changes, print a co cordance with the print chart specifications containing th a. The invoice number b. Total Invoice amount (total of extension amounts) c. Descriptive words and an asterisk as specified on the print 5. After all the input records have been processed, print a report to the total of all invoice totals printed. 8. Headings are to be printed on each page of the report. After 54 lines have on a report page and a new invoice record is to be printed, the program is to skip to the next page and print the report headings. (Do not allow the control break line to be printed on a report page which does not contain at least one detail line for the invoice number to which it applies.) a. The page number is to be incremented each time the heading is printed and displayed on the second heading-line in accordance with the format shown on the print chart. b. The run date is to be obtained from the operating system and printed on the second heading-line in accordance with the format shown on the print chart. 7. Line spacing is to be handled as follows: 2. The first detail-line after the headings is to be double-spaced from the last heading line.' b. Second and successive detail-lines for the same invoice number are to be single- spaced from one another. c. Each control break invoice total-line is to be double-spaced from the previous detail-line. d. The first detail-line following a control break invoice total-line is to be double- spaced from the invoice total-line. 8. Group indicate the printing of the Invoice Number field. SR SR 0799 9253 8359 3669 9010 Marafuga, Kevin Mcpherson, Styrone P Powers, Thomas M Rai, Prem Velozo, Briana M SR 3.000 3.000 3.000 3.000 3.000 CIS CIS CIS CIS CIS the What would be control break program Pls Domain: Shared/Standard Reports/Rosters COBOL

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions