Conditionals 1
examples
Classwork
In a text document:
Write pseudocode for the following situations. In addition to
conditionals, remember to think about variable names and types.
- Make up a bank balance for the user and then ask them for the
amount of a check they wrote and deduct it from the balance.
Warn users who used more money than they had that they are now
overdrawn.
- Ask the user for their state. If they are from Maryland,
give them in-state tuition, otherwise, they pay the full price. Assume you have methods
processInStateTuition() and processFullPriceTuition() that will deal with actually doing
the tution once we know which one we want.
- Get two numbers from the user and print out whichever one is
higher (if they are the same, it doesn't matter which one you
print).