Ask COBOL Expert


Home >> COBOL

Practice Program:

Review the description, flowchart, record layout, pseudocode, and hierarchy chart for the practice program. Review these items to gain a better understanding of the program's logic. After reviewing these items, code the program as illustrated by Figure. That is, type the program exactly as written in the textbook but with the following modifications:

1. Add a comment describing the purpose of the program.

2. The PROGRAM-ID section of the ENVIRONMENT DIVISION must be written as LastnameFirstinitialA3 (e.g., BasilioEA3).

3. Modify the SELECT PURCHASE-TRANS section of the program to exclude the entire path. That is, instead of writing ‘C:\CHAPTER6\CH6PPB.DAT' write ‘CH6PPB.DAT' for this section. In order to test the program, the student must ensure that the file CH6PPB.DAT is downloaded to the New_Configuration.bin subfolder of the COBOL project created to complete this assignment (see steps 43 and 44 of the Week 2 Tutorial).

4. Modify the SELECT PURCHASE-REPORT section of the program to exclude the entire path and to name the file as LastnameFirstinitialA3.rpt. That is, instead of writing ‘C:\CHAPTER6\CH6PPB.RPT' write ‘LastnameFirstinitialA3.rpt' (e.g., BasilioEA3.rpt) for this section.

5. Modify the program to print the total amount of all purchases for all customers at the end of the report. That is, the sum total of all purchases.

The rest of the program should be written exactly as illustrated in the textbook. Compile and execute the program. If errors are reported, resolved them based on the messages reported by the compiler and by comparing the code to the textbook.

Attachment:- Assignment.rar

COBOL, Programming

  • Category:- COBOL
  • Reference No.:- M91377196
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in COBOL

Write a program that will provide a list of their employees

Write a program that will provide a list of their employees with the following information: Field Size Type Additional Information Employee Number 5 Alphanumeric Employee Name 20 Alphanumeric Position Title (PT) 10 Alpha ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As