You are developing a payroll system in COBOL. Which arithmetic operation should you use to calculate the gross salary of an employee based on their hourly wage and hours worked?

  • ADD
  • COMPUTE
  • DIVIDE
  • MULTIPLY
To calculate gross salary, you should use the MULTIPLY operation to multiply the hourly wage by the number of hours worked, giving the total amount earned. ADD, DIVIDE, and COMPUTE are not appropriate for this specific calculation.
Add your answer
Loading...

Leave a comment

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