The ABC Bank needs a program to print a report on customer checks cashed for a s
ID: 3593944 • Letter: T
Question
The ABC Bank needs a program to print a report on customer checks cashed for a specific month. The input to this program will be customer records sorted on customer account numbers. Each customer input record will contain the following:
COLUMN DATA DATA DIVISION NAME
1-5 Account Number ACCOUNT-IN
6-25 Customer Name NAME-IN
26-30 Check Number CHECK-NUM-IN
31-36 Check Dollar Amount CHECK-AMT-IN
Assume the printed output header record has already been printed and contains the following information:
MONTHLY CHECK CASHING REPORT FOR ACCOUNT: ACCOUNT-IN FOR CUSTOMER: NAME-IN
When writing a controlled break solution to the above problem, when would the total number of records processed for an account and the total dollar amount processed for an account be printed?
A. When a controlled break occurs.
B. When account numbers change.
C. When end of file occurs.
D. all of the above are correct.
E. Only "A" and "B" are correct
A. When a controlled break occurs.
B. When account numbers change.
C. When end of file occurs.
D. all of the above are correct.
E. Only "A" and "B" are correct
Explanation / Answer
Answer: C. When end of file occurs.
When end of file occurs, then the total number of records processed for an account and the total dollar amount processed for an account be printed
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.