The ABC Bank needs a program to print a report on customer checks cashed for a s
ID: 3593948 • 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
The printed output record will contain the following header:
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 above header record be printed?
A. When the first Input record is read into RAM.
B. When the control field equals the ACCOUNT-IN field on an input record.
C. When end of file occurs.
D. When a controlled break occurs.
E. Both "A" and "D" are correct
F. Both "B" and "C" are correct.
A. When the first Input record is read into RAM.
B. When the control field equals the ACCOUNT-IN field on an input record.
C. When end of file occurs.
D. When a controlled break occurs.
E. Both "A" and "D" are correct
F. Both "B" and "C" are correct.
Explanation / Answer
Answer: F. Both "B" and "C" are correct.
When the control field equals the ACCOUNT-IN field on an input record and also When end of file occurs.then header record would be printed
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.