Math Assignment

Write the math statement to accomplish the following:

  1. Write the statement to add two fields called AMT1 and AMT2 together and store the answer in AMT-WS.
  2. Assuming the following pictures for AMT1 and AMT2, what should you use as a picture for AMT-WS.

05 AMT1 PIC 999V99.

05 AMT2 PIC 99V99.

  1. Write the statement to subtract AMT-PAID from AMT-OWED and store the answer back in AMT-OWED.
  2. Write the statement to multiply PAY-HR by HRS-WK and store the answer in GROSS-PAY-WS.
  3. Continuing with #4, write the statement to subtract DEDUCTIONS from the field called GROSS-PAY-WS and store the results in NET-PAY-WS.
  4. Write the statement to divide a field called AMT-DUE by a field called NUM-PAY and store the answer in a field called PAYMENT-WS. Write the command using DIVIDEBY. Round the results
  5. Rewrite the statement in #6 using the DIVIDEINTO.
  6. Write a divide statement of your own (you make up the data names) that uses REMAINDER.
  7. Write an ADD statement of your own design that adds three fields together and sotres the answer.
  8. Write an add statement that adds 1 to a field called TOT-AMT-WS.