Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- READ amount
- COMPUTE salesTax AS amount * 0.07
- COMPUTE amount AS amount + salesTax
- DISPLAY amount
- READ rating
- IF rating < 3 THEN
- COMPUTE tip AS amount * 0.10
- COMPUTE amount AS tip + amount
- DISPLAY amount
- ELSE
- IF rating < 7 THEN
- COMPUTE tip AS amount * 0.15
- COMPUTE amount AS tip + amount
- DISPLAY amount
- ElSE
- IF rating < 11 THEN
- COMPUTE tip AS amount * 0.20
- COMPUTE amount AS tip + amount
- DISPLAY amount
- ENDIF
- ENDIF
- READ reward
- IF reward == TRUE THEN
- READ balance
- IF balance > amount THEN
- COMPUTE amount AS amount - balance
- SET balance TO 0
- DISPLAY amount
- ELSE
- COMPUTE balance AS balance - amount
- SET amount TO 0
- DISPLAY amount
- ELSE
- DISPLAY amount
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement