You are developing a COBOL program to process customer orders. If the order total is greater than $1000, you want to apply a 10% discount; otherwise, no discount is applied. Which COBOL conditional statement is suitable for this scenario?
- EVALUATE
- IF...ELSE
- PERFORM VARYING
- SET
In this scenario, the IF...ELSE statement in COBOL is appropriate. It allows you to make a binary decision based on whether the order total is greater than $1000, enabling you to apply the discount conditionally.
Loading...
Related Quiz
- When using the READ verb in COBOL, the ________ clause is used to define what should happen when no matching record is found.
- How can you efficiently remove duplicate records from a COBOL file while preserving data integrity?
- Your COBOL program needs to maintain a counter that keeps track of the number of times a specific operation is performed. Which type of variable is suitable for this task?
- You are developing a COBOL program that reads data from an existing file and updates specific records. Which file access mode should you choose for this operation?
- How can you efficiently navigate through a file containing variable-length records in COBOL?