In a COBOL program for an inventory system, you need to calculate the total cost of goods sold (COGS) for a batch of products. Which arithmetic operation should be applied to achieve this?

  • ADD
  • COMPUTE
  • DIVIDE
  • SUBTRACT
To calculate the COGS, you should use the SUBTRACT operation to subtract the cost of goods sold from the initial inventory. ADD, DIVIDE, and COMPUTE are not suitable for this specific calculation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *