This preview shows page 1. Sign up to view the full content.
Unformatted text preview: are separate paths to follow if the data is true or false. Case structure's (Multiple-alternative structures"), have more than two block statements and when a condition is met it will follow that path and pass the other two block statements. Dual-Alternative Structure Input Cost Write "Enter total revenue:" Input Revenue Set Amount = Revenue - Cost If Amount > 0 Then Set Profit = Amount Write "The profit is $" + Profit Else Set Loss = -Amount Write "The loss is $" + Loss End If...
View Full Document
This note was uploaded on 03/08/2012 for the course CGS 3269 taught by Professor Staff during the Fall '08 term at University of Central Florida.
- Fall '08
- Computer Architecture