Your COBOL program processes financial transactions, and you need to calculate the balance after a series of deposits and withdrawals. Which arithmetic statement is suitable for this scenario?
- ADD
- COMPUTE
- MULTIPLY
- SUBTRACT
To calculate the balance after deposits and withdrawals, you should use the SUBTRACT operation to deduct withdrawals from the total balance. COMPUTE, ADD, and MULTIPLY are not appropriate for this specific calculation.
Loading...
Related Quiz
- When removing duplicate records from a COBOL file, you may use the _____ operation to merge duplicate entries.
- In COBOL, what is the difference between a data item defined in the WORKING-STORAGE section and a data item defined in the FILE SECTION?
- Which COBOL data type is appropriate for representing fixed-point decimal numbers?
- What is the purpose of a class in Object-Oriented COBOL?
- _____ is the process of creating a new object from a class in Object-Oriented COBOL.