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

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-Mone-Records NOT AT END PERFORM 200-Calc-tn END-READ END-PERFORM Move Total to print area Print Total Close all files STOP 200-CALC-RIN 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. (blank) (blank) (blank) (blank) (blank)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!