Question: Chapter 5: Designing and Debugging Batch and Interactive COBOL Programs 181 PROGRAMMING ASSIGNMENTS 1. Consider the pseudocode in Figure 5.10. Figure 5.10 Pseudocode for Programming
Chapter 5: Designing and Debugging Batch and Interactive COBOL Programs 181 PROGRAMMING ASSIGNMENTS 1. Consider the pseudocode in Figure 5.10. Figure 5.10 Pseudocode for Programming Assignment 1. START Open all files Set Total to 0 Set Are-There-More-Records to 'YES' PERFORM UNTIL Are-There-More-Records = 'NO' READ a record AT END Move 'NO' to Are There-More-Records NOT AT END PERFORM 200-Calc-Rtn END-READ END-PERFORM Move Total to print area Print Total Close all files STOP 200-CALC-RTN IF position 18 = 1 THEN IF position 19 NOT = 2 THEN Add 2 to Total END IF ELSE IF position 19 = 2 THEN Add 1 to Total END IF END IF With the following input records, what will be the contents of TOTAL at the end of all operations? Contents of Record Position 18 Contents of Record Position 19 Record No. N (blank) (blank) (blank) (blank) OOOO01 (blank) din Timu 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
