Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/ ERUGGING Consider the following arithmetic statements: 1 ADD AMT1 TO FIN-TOT 2 ADD AMT1 TO AMT2 GIVING AMT3 COMPUTE AVERAGE AMTI + AMT2 /

image text in transcribed
/ ERUGGING Consider the following arithmetic statements: 1 ADD AMT1 TO FIN-TOT 2 ADD AMT1 TO AMT2 GIVING AMT3 COMPUTE AVERAGE AMTI + AMT2 / 2 COMPUTE AMT4 = AMT 1 + AMT2 ROUNDED MULTIPLY AMT1 BY AMT2 5 6 DIVIDE AMT1 BY 2 7 MULTIPLY AMT4 TIMES AMT3 1. Which statements will produce syntax errors? Correct these 2. On line 3, will a correct average of AMT1 and AMT2 be computed? If your answer is no, make 3. For line 5, suppose the PIC clause of AMT1 is 99v99. AMT2 has a PIC clause of 904) v99. Under 4. Assume that all the syntax and logic errors have been corrected on lines 1 through 7 and that whatever changes you think are necessary to obtain the correct results. what conditions will a logic error result? What can you do to prevent such an error? the preceding steps are executed in sequence. What will be the results in the following fields: 2 AMT1: AMT2: AMT3: AMT4: AVERAGE? / ERUGGING Consider the following arithmetic statements: 1 ADD AMT1 TO FIN-TOT 2 ADD AMT1 TO AMT2 GIVING AMT3 COMPUTE AVERAGE AMTI + AMT2 / 2 COMPUTE AMT4 = AMT 1 + AMT2 ROUNDED MULTIPLY AMT1 BY AMT2 5 6 DIVIDE AMT1 BY 2 7 MULTIPLY AMT4 TIMES AMT3 1. Which statements will produce syntax errors? Correct these 2. On line 3, will a correct average of AMT1 and AMT2 be computed? If your answer is no, make 3. For line 5, suppose the PIC clause of AMT1 is 99v99. AMT2 has a PIC clause of 904) v99. Under 4. Assume that all the syntax and logic errors have been corrected on lines 1 through 7 and that whatever changes you think are necessary to obtain the correct results. what conditions will a logic error result? What can you do to prevent such an error? the preceding steps are executed in sequence. What will be the results in the following fields: 2 AMT1: AMT2: AMT3: AMT4: AVERAGE

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

More Books

Students also viewed these Databases questions

Question

How should the standards analyst utilize learning curves?

Answered: 1 week ago