Questions about MixedTermSavingsAccount

 

  1. When a MixedTermSavingsAccount is created, what is its initial balance?
  2. If we deposit 500 in a MixedTermSavingsAccount that has a limit of 200, what is
    1. the balance
    2. the available balance
    3. the unavailable balance
  3. If we then deposit 27 additional in this MixedTermSavingsAccount what is
    1. the balance
    2. the available balance
    3. the unavailable balance
  4. If we then deposit -32 in this Mixed Term SavingsAccount what is
    1. the balance
    2. the available balance
    3. the unavailable balance
  5. If we withdraw 40 from  this MixedTermSavingsAccount what is
    1. the balance
    2. the available balance
    3. the unavailable balance
  6. If we withdraw 248 from  this MixedTermSavingsAccount what is
    1. the balance
    2. the available balance
    3. the unavailable balance
  7. If we withdraw 75 from  this MixedTermSavingsAccount what is
    1. the balance
    2. the available balance
    3. 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.

 

  1. What parameter(s) does the constructor of a MixedTermSavingsAccount require?
  2. 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() ?
  3. What would be returned by MTSA.getBalance()
  4. What would be returned by MTSA.deposit (600)
  5. What would be returned by MTSA.deposit (-50)
  6. What would be returned by MTSA.withdraw (155)
  7. What would be returned by MTSA.withdraw (100)
  8. What would be returned by getBalanceMessage();