Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Purpose: To practice designing and coding a COBOL program and to utilize edit patterns, condition names, and the SCREEN SECTION in the display of a

Purpose: To practice designing and coding a COBOL program and to utilize 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 condition 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 program as EX3-3.CBL
Exercise 3: Customer Sales Report (continued)
Input Data: Use the Customer Sales file listed in Appendix A as input. This file is named CUSTSALE.DAT and is
found on the Data Disk. See the inside back cover of this book for instructions for downloading the Data Disk or
see your instructor. The record layout for the customer records is as follows:
Record Length
Output Results: A report should be displayed listing the customer number, customer name, purchase date, purchase
price, and satisfaction rating. Single-space detail lines and display a count of the number of customers listed at the
end of the report. The report should have a format similar to the following:
DATE: z999?9999
EZ AUTO SALES
PAGE ZZ9
CUSTOMER SALES REPORT
TOTAL NUMBER OF CUSTOMERS LISTED =ZZ9
END OF REPORTThe data in localSt
orage is stored asExercise 3: Customer Sales Report
Purpose: To practice designing and coding a COBOL program and to utilize 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 program as
EX3-3.CBL.Purpose: To practice designing and coding a COBOL program and to utilize 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 condition 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 program as EX3-3.CBLPurpose: To practice designing and coding a COBOL program and to utilize 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 condition 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 program as EX3-3.CBLExercise 3: Customer Sales Report (continued)
Input Data: Use the Customer Sales file listed in Appendix A as input. This file is named CUSTSALE.DAT and is
found on the Data Disk. See the inside back cover of this book for instructions for downloading the Data Disk or
see your instructor. The record layout for the customer records is as follows:
Record Length
Output Results: A report should be displayed listing the customer number, customer name, purchase date, purchase
price, and satisfaction rating. Single-space detail lines and display a count of the number of customers listed at the
end of the report. The report should have a format similar to the following:
DATE: z999?9999
EZ AUTO SALES
PAGE ZZ9
CUSTOMER SALES REPORT
TOTAL NUMBER OF CUSTOMERS LISTED =ZZ9
END OF REPORT
image text in transcribed

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions