Question: 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 EXCBL
Exercise : 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. Singlespace 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:
EZ AUTO SALES
PAGE ZZ
CUSTOMER SALES REPORT
TOTAL NUMBER OF CUSTOMERS LISTED
END OF REPORTThe data in localSt
orage is stored asExercise : 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
EXCBLPurpose: 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 EXCBLPurpose: 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 EXCBLExercise : 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. Singlespace 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:
EZ AUTO SALES
PAGE ZZ
CUSTOMER SALES REPORT
TOTAL NUMBER OF CUSTOMERS LISTED
END OF REPORT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
