Questions about
MixedTermSavingsAccount
- When a
MixedTermSavingsAccount is created, what is its initial balance?
- If we
deposit 500 in a MixedTermSavingsAccount that has a limit of 200, what is
- the balance
- the
available balance
- the
unavailable balance
- If we
then deposit 27 additional in this MixedTermSavingsAccount what is
- the
balance
- the
available balance
- the
unavailable balance
- If we
then deposit -32 in this Mixed Term SavingsAccount what is
- the
balance
- the
available balance
- the
unavailable balance
- If we withdraw
40 from this
MixedTermSavingsAccount what is
- the
balance
- the
available balance
- the
unavailable balance
- If we
withdraw 248 from this
MixedTermSavingsAccount what is
- the
balance
- the
available balance
- the
unavailable balance
- If we
withdraw 75 from this
MixedTermSavingsAccount what is
- the
balance
- the
available balance
- the
unavailable balance
For the following questions,
ignore the answers you have written for questions 2 through 7 and assume that
you are continuing from the work we did in class.
- What
parameter(s) does the constructor of a MixedTermSavingsAccount require?
- If we
instantiate a MixedTermSavings MTSA, (following on the work in
class today) with a limit of 250,
what would be returned by MTSA.getAccountID() ?
- What
would be returned by MTSA.getBalance()
- What
would be returned by MTSA.deposit (600)
- What
would be returned by MTSA.deposit (-50)
- What
would be returned by MTSA.withdraw (155)
- What
would be returned by MTSA.withdraw (100)
- What
would be returned by getBalanceMessage();