Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Customer Purchases Report Purpose: To practice using edir patterns and the SCREEN SECTION in creating a COBOL program that produces Customer Purchases report Problow Write

Customer Purchases Report Purpose: To practice using edir patterns and the SCREEN SECTION in creating a COBOL program that produces Customer Purchases report Problow Write a program that displays a Customer Purchases Report for the ABC Department Store. Use the SCREEN SECTION for output definitions. Display the account number, customer name, balance, peches, and credit limit on each detail line. Edit the customer balance and purchases wing floating dollars. Use the credit uymbol (CR) at the end of the edit pattern for the balance field. Zero suppress the credit limit field. Save this programas EX3-2CBL BACK FORWARD COBOL Laboratory Exercises 101 Input Date Uhe the Customer file listed in Appendix A as input. This file is named CUSTOMER DAT and is among the files on the Data Disk See the inside hack cover of this book for instructions for downloading the Duta Dekor see your instructor Customer records have the following layout Field Description Position Length Atribute filler 8 Alphanumeric Account Number 9-14 6 Alphanumeri Customer Name 15-34 20 Alphanumeric filter 35-55 21 Alphanumeri Balance 56-61 Numeric 594199 Purchases 62-67 6 Numeric 499 Credit Limit 68-72 5 Numeric filler 73-74 2 Alphanumeric Record Length 74 6 Output Results: Output consists of the Customer Purchases Report that displays the account number, customer name, balance, purchases, and credit limit for each comtomer Simple-space detail lines. Count and duplay the number of customers processed. The report should have a forma similar to the following DATE: 20/08/2009 ABC DEPARTHENT STORE CUSTOMER PURCHASES REPORT ACCOUNT CREDIT NUMBER CUSTOMER NAME SALANCE PURCHASES LIST XXXXXX XXXXXXXXXXXXXXXXXXXX55,555.99CH 55,555.992.229.99 XXXXXXXXXXXXXXXXXXXX $5.555.9 CR 55.555.992.229.99 XXXXXX TOTAL NUBER OF RECORDS DISPLAYED - 22229 END OF REPORT Ch-3 of textbook 000 | 34 of 36 Customer Purchases Report Purpose: To practice using edit patterns and the SCREEN SECTION in creating a COBOL program that produces a Customer Purchases report. Problem: Write a program that displays a Customer Purchases Report for the ABC Department Store. Use the SCREEN SECTION for output definitions. Display the account number , customer name, balance, purchases, and credit limit on each detail line. Edit the customer balance and purchases using floating dollar signs. Use the credit symbol (CR) at the end of the edit pattern for the balance field. Zero suppress the credit limit field. Save this program as EX3-2.CBL COBOL Laboratory Exercises 101 Input Date: Use the Customer file listed in Appendix A as input. This file is named CUSTOMER DAT and is among the files on the Data Disk. See the inside back cover of this book for instructions for downloading the Data Dekor see your instructor. Customer records have the following layout: Field Description Position Length Attribute filler 1-8 8 Alphanumeric Account Number 9-14 6 Alphanumeric Customer Name Alphanumeric filler 35-55 21 Alphanumeric Balance 56-61 Numeric, 59(4)V99 Purchases 62-67 Numeric, 9(4)199 Credit Limit 68-72 filler 73-74 2 Alphanumeric Record Length 74 15-34 20 6 6 5 Numeric Output Results: Output consists of the Customer Purchases Report that displays the account number, customer name, balance, purchases, and credit limit for each customer. Single-space detail lines. Count and display the number of customers processed. The report should have a forma similar to the following DATE: 29/99/0989 ABC DEPARTMENT STORE PAGE 229 CUSTOMER PURCHASES REPORT ACCOUNT NUMBER CUSTOMER NAUE BALANCE CREDIT PURCHASES LIVIT XXXXXX XXXXXX XXXXXXXXXXXXXXXXXXXX $5,555.99CR $5,55$.99 2,229.99 XXXXXXXXXXXXXXXXXXXX 58,588.99CR $$.$$$.99 2,229.99 TOTAL NUMBER OF RECORDS DISPLAYED 22229 END OF REPORT Exercise 31 Customer Sales Report Purpose: To practice designing and coding a COBOL program and to utilise edit patterns, condition names, and the , SCREEN SECTION in the display of a report Problem: Design and code a COBOL program that displays a Customer Sales Report for EZ Auto Sales. Use the SCREEN SECTION for output definitions. The report should display the customer's number, name, purchase date, purchase price, and satisfaction rating Define condition names associated with the satisfaction field. Test these con- dition names in the program. Then display an appropriate message to correspond to a customer's satisfaction rating Insert slashes in the purchase date. Use a floating dollar sign on the purchase price. Save this programas EX3.3.CBL

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions