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-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

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 And Expert Systems Applications 22nd International Conference Dexa 2011 Toulouse France August/September 2011 Proceedings Part 1 Lncs 6860

Authors: Abdelkader Hameurlain ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2011th Edition

3642230873, 978-3642230875

More Books

Students also viewed these Databases questions

Question

friendliness and sincerity;

Answered: 1 week ago