Question: Consider the following arithmetic statements. 1 . ADD AMT 1 TO FIN - OUT 2 . ADD AMT 1 TO AMT 2 GIVING AMT 3
Consider the following arithmetic statements.
ADD AMT TO FINOUT
ADD AMT TO AMT GIVING AMT
COMPUTE AVERAGE AMT AMT
COMPUTE AMT AMT AMT ROUNDED
MULTIPLY AMT BY AMT
DIVIDE AMT BY
MULTIPLY AMT TO TIMES AMT
Which statements will produce syntax errors? Correct these.
On line will correct average of AMT and AMT be computed? If your answer is no make whatever changes you think are necessary to obtain the correct result.
For line suppose the PIC clause of the AMT is V AMT has a PIC clause of V Under what conditions will a logic error result? What can you do to prevent such an error?
Assume that all the syntax and logic errors have been corrected on lines through and that preceding steps are executed in sequence. What will be the results in the following fields: ANT: AMT: AMT: AMT: AVERAGE?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
