Question: COBOL For this program, you will have two files: Transaction file Master file You will update the master file by using the transaction file. The
COBOL
For this program, you will have two files:
Transaction file
Master file
You will update the master file by using the transaction file. The file layouts/records for the two files are:
TRANSACTION FILE
Account Number: 5 alphanumeric characters
Customer Name: 20 alphanumeric characters
Amount 1: 5 total numeric characters, with two decimal places (999v99)
Amount 2: same layout as Amount 1
Discount Amount: Same layout as Amount 1
MASTER FILE
Account Number: 5 alphanumeric characters
Customer Name: 20 alphanumeric characters
Total Amount: 4 numeric characters, decimal placeholder, 2 numeric characters
Amount Due: same layout as Total Amount
Blank space: 3 alphanumeric
CALCULATIONS
Total Amount = Amount 1 + Amount 2
Amount Due = Total Amount Discount Amount
TRANSACTION FILE CONTENTS:
00001FRANK DIMAGGIO 475611234501500 01000CHARLES HANSON 009990100001000 20000PAUL BROWN 234561119902000 45000GARY JONES 010000100000500 60000TODD HARTMAN 300002000010000
WHAT THE MASTERFILE SHOULD LOOK LIKE AFTER EXECUTION:
00001FRANK DIMAGGIO 059906058406 01000CHARLES HANSON 001999000999 20000PAUL BROWN 034655032655 45000GARY JONES 002000001500 60000TODD HARTMAN 050000040000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
