In class exercise - FINAL TOTALS
The program FINTOT.CBL has the following data on the input file:
1234SUSAN SMITH 123
2345JOHN BROOKS 543
3456LINDA ANDERSON 456
4567DAVID LITCHFIELD 565
Look at the program and determine which output is correct. Briefly
explain the problem(s) with the ones you did not select:
Choice A:
1234 SUSAN SMITH 123
2345 JOHN BROOKS 543
3456 LINDA ANDERSON 456
4567 DAVID LITCHFIELD 565
TOTAL NUMBER OF RECORDS: 1,687 4
Choice B:
1234 SUSAN SMITH 123
2345 JOHN BROOKS 543
3456 LINDA ANDERSON 456
4567 DAVID LITCHFIELD 565
TOTAL NUMBER OF RECORDS: 4 1,687
Choice C:
1234 SUSAN SMITH 123
2345 JOHN BROOKS 543
3456 LINDA ANDERSON 456
4567 DAVID LITCHFIELD 565
TOTAL NUMBER OF RECORDS: 4 1,297
Choice D:
1234 SUSAN SMITH 123
2345 JOHN BROOKS 543
3456 LINDA ANDERSON 456
4567 DAVID LITCHFIELD 565
TOTAL NUMBER OF RECORDS: 4
1,297
The program fintot3.cbl uses the following input data:
1234SUSAN SMITH 123
2345JOHN BROOKS 543
3456LINDA ANDERSON 456
4567DAVID LITCHFIELD 565
Look at the program and determine which output is correct. Briefly explain the
problem(s) with the ones you did not select:
Choice 1:
1234 SUSAN SMITH 123 1,230
2345 JOHN BROOKS 543 5,430
3456 LINDA ANDERSON 456 4,560
4567 DAVID LITCHFIELD 565 5,650
TOTAL NUMBER OF RECORDS: 4 1,687 16,870
Choice 2:
1234 SUSAN SMITH 1,230 123
2345 JOHN BROOKS 5,430 543
3456 LINDA ANDERSON 4,560 456
4567 DAVID LITCHFIELD 5,650 565
TOTAL NUMBER OF RECORDS: 4 16,870 1,687
Choice 3:
1234 SUSAN SMITH 123
2345 JOHN BROOKS 543
3456 LINDA ANDERSON 456
4567 DAVID LITCHFIELD 565
TOTAL NUMBER OF RECORDS: 4 1,687