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.
Add your answer
Loading...

Leave a comment

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