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.
Loading...
Related Quiz
- When using the ADD statement in COBOL, the result is stored in the ________.
- How does the EXIT statement differ from the CONTINUE statement in COBOL error handling?
- When debugging a COBOL program, what does it mean if you encounter a "syntax error"?
- How does the PERFORM UNTIL statement differ from the PERFORM VARYING statement in COBOL?
- In COBOL, the _______ clause is used to declare exception conditions that can be raised during program execution.