Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Develop and Run a COBOL Program to Produce a Simple Report Introduction. You are to design and develop a COBOL program to produce a simple

Develop and Run a COBOL Program to Produce a Simple Report

Introduction.

You are to design and develop a COBOL program to produce a simple report using the records contained in the OrderFil.Dat file. The report will contain page headings, report name, report date, page numbers, column headings, detail lines with columns evenly spaced over 132 columns and end the report with report totals. The format of the records in the Order File is:

Positions Field Description Data Class Comments

1 - 4 Region ID Alphanumeric

5 - 10 Customer Number Alphanumeric

11 - 35 Item Name Alphanumeric

36 - 38 Quantity Ordered Numeric

39 - 44 Unit Price Numeric With two decimal places.

Actions:

Prepare a report layout that provides for page headings, report name, program name, report date page numbers, column headings, double spaced detail lines all evenly spaced over 132 columns. The report should end with a count of the number of records read and a total of the quantity sold.

See below for Additional Report Layout Details. [Suggestion: Create in Excel.] You will be required to turn in a copy for review before the project due date. The final copy of your report layout must accompany your job listing.

Produce a File Environment Diagram for this program. [Suggestion: Create in Word using the Flowchart shapes.]

Produce a detailed flowchart for the algorithm to be employed in producing this report. [Suggestion: Create in Word. You can also use Microsoft Visio, if you have it. There are freeware flowchart apps; I have used SmartDraw in the past.]

OrderFil.txt:

E 011000004-Outlet Surge Protector 100002000 E 01100000APC 8-Outlet Backup UPS 100002000 E 01100000Color Laser Paper, Ream 005003999 E 01100100Belkin Wireless-G Ext 010007000 E 01100100Maxtor 160GB HD 020011000 E 01100100Netgear Wireless-G Card 100004250 E 01100100Quicken Deluxe 2009 005006000 E 01220000Pen-Style Highliters 6pk 250000349 E 01450100Perforated Canary Pad 8pk123000949 E 01450100Post-it Easel Pad, 4pk 010009999 E 01450100Seagate 1TB External HD 005015000 E 01505050Dell (T0529) Black Ink 200002975 E 01505050Dell (T0530) Color Ink 200003225 E 01505050HP 10 (C4844A) Black 200003900 E 01505050HP 11 (C4810A) Black 200003900 E 01505050HP 11 (C4811A) Cyan 200003900 E 01505050HP 11 (C4812A) Magenta 200003900 E 01505050HP 11 (C4813A) Yellow 200003900 E 02130030Quicken Deluxe 2009 025006000 E 02130040Logitech Cordless Laser 010004520 E 02130040Logitech Cordless Notebk 030005300 N 01100100Fine Point Blk Pens doz 100000999 N 01100100Fine Point Blu Pens doz 100000999 N 01100100Fine Point Red Pens doz 100000999 N 01100100Medium Point Blk Pens doz100000999 N 01100100Medium Point Blu Pens doz100000999 N 01100100Medium Point Red Pens doz100000999 N 02202020Compaq Laptop Pentium T42005052998 N 02202020PNY Attache 4GB USB Flash040001799 N 02404040HP LaserJet P2055 Printer002039999 NE01500000HP 2320 Color Laser Multi001069999 NE02100200Color Paper, Ream, 12x18 005003999 NE02100200PNY Attache 4GB USB Flash119001799 NE02100200SanDisk 8GB USB Flash 145004500 NE02100200Seagate 1TB External HD 004015000 NE02100200Targus 4-port USB Hub 010002199 NE02100200Targus Mini Mouse 010002199 NE02100300Pen-Style Highliters 6 pk200000349 NE02100300Permanent Markers Doz 200000749 NE02100301HP W233H 23" LCD 002022998 NE02200400Microsoft Office 2007 Bus005017000 NE02200400Microsoft Office 2007 Hom005010000 NE02200400Quicken Deluxe 2009 005006000 NW02123123HP LaserJet P2055 Printer002039999 S 01201000Microsoft Office 2007 Bus008017000 S 01201000Quicken Deluxe 2009 008006000 S 01201000TurboTax Deluxe 2008 008006000 S 01305701Fine Point Blk Pens Doz 025000999 S 01305701Fine Point Blu Pens Doz 025000999 S 01305701Fine Point Red Pens Doz 025000999 S 01305701Medium Point Blk Pens Doz025000999 S 01305701Medium Point Blu Pens Doz025000999 S 01305701Medium Point Red Pens Doz025000999 S 01305701Pen-Style Highliters 6pk 025000349 S 01305701Permanent Markers Doz 050000749 S 02108340Netgear Wireless-G Card 007004250 S 02108340Netgear Wireless-N Router007008000 S 02305000HP 20" Wide-screen LCD 002014998 S 02305000HP 2320 Color Laser Multi002069999 S 02500500HP W233H 23" LCD 002022998 S 02667788Restickable Easel Pad 2pk011003999 SE01001045TurboTax Deluxe 2008 111006000 SE02222777Targus Mini Mouse 090002199 SE02333888HP 20" Wide-screen LCD 005014998 SE02333888HP W233H 23" LCD 003022998 SE02333888Targus 4-Port USB Hub 120002199 SE02557799Color Laser Paper, Ream 015001549 SE02557799Color Paper, Ream, 12x18 015003999 SW01525252Dell (T0529) Black Ink 100002975 SW01525252Dell (T0530) Color Ink 100003225 SW01525252HP 10 (C4844A) Black 100003900 SW01525252HP 11 (C4810A) Black 100003900 SW01525252HP 11 (C4811A) Cyan 100003900 SW01525252HP 11 (C4812A) Magenta 100003900 SW01525252HP 11 (C4813A) Yellow 100003900 SW01525252SanDisk 8GB USB Flash 050004500 W 01115599Compaq Laptop Pentium T42003052998 W 01115599HP 20" Wide-screen LCD 003014998 W 01221180HP 2320 Color Laser Multi001069999 W 01221180HPW233H 23" LCD 003022998 W 01221180Quicken Deluxe 2009 005006000 W 01555888Color Paper, Ream, 12x18 030003999 W 01555888Multipurpose Paper, Case 003004299 W 01780780Netgear-N Router 020008000 W 01780780PNY Attache 4GB USB Flash100001799 W 01780780SanDisk 8GB USB Flash 100004500 W 01880000Logitech Cordless Laser 020005300 W 01880000Microsoft Wireless Laser 017008000 W 02108340Netgear Wireless-G Card 005004250 W 02305701Permanent Markers Doz 055000749 W 02525252HP 11 (C4810A) Black 100003900

image text in transcribed

image text in transcribed

The excel sheet is the report layout.

! P R NM A R E G N N A M E XIX X X X X X X X X X X X A L O T A L ! P R NM A R E G N N A M E XIX X X X X X X X X X X X A L O T A L

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_2

Step: 3

blur-text-image_3

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students explore these related Databases questions