Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions