Solution for the Arithmetic Worksheet

The Arithmetic Worksheet is available in the course Notes book and also on a web page.



Working-Storage Section.

       01  Numbers-1.
           05  Num-1                   Pic 999         Value 100.
           05  Num-2                   Pic 99V9        Value 20.5.
           05  Num-3                   Pic 9(4)        Value 1000.
           05  Num-4                   Pic 9V99        Value 2.50.
           05  Num-5                   Pic 99          Value 25.
           05  Num-6                   Pic 9           Value 5.
           05  Num-7                   Pic 9(4)V9.


Problems:

Note: In the answers below, the capital letter V is used to show
the position of the implied decimal point.

1.  Add Num-1 Num-2 Giving Num-3.

    Num-1 ___100___  Num-2 ___20V5___ Num-3 ___0120___


2.  Add Num-1 to Num-2

    Num-1 ___100___  Num-2 ___20V5___


3.  Subtract Num-2 from Num-1.

    Num-1 ___079___  Num-2 ___20V5___


4.  Multiply Num-5 by Num-6.

    Num-5 ___25___  Num-6 ___5___


5.  Multiply Num-6 by Num-5.

    Num-5 ___25___  Num-6 ___5___


6.  Multiply Num-5 by Num-1 Giving Num-3.

    Num-1 ___100___  Num-3 ___2500___  Num-5 ___25___


7.  Divide Num-6 into Num-5.

    Num-5 ___05___  Num-6 ___5___


8.  Divide Num-5 by 10 Giving Num-6.

    Num-5 ___25___  Num-6 ___2___


9.  Compute Num-7 = Num-6 * Num-1 + Num-5 - Num-3 / Num-1.

    Num-7 ______0515V0______


10. Compute Num-7 = Num-6 * (Num-1 + Num-5) - Num-3 / Num-1.

    Num-7 ______0615V0_____

    What if the answer to Problem 10 had to go in Num-5?

    Num-5 ________15_______


11. Compute Num-7 = Num-6 * ((Num-1 + Num-5) - Num-1) / Num-5.

    Num-7 ______0005V0_____