Bank Account System
> open savings S1 Asha 25000
Opened savings account S1 for Asha: Rs 25,000.00
> open current C1 Ravi 3000
Opened current account C1 for Ravi: Rs 3,000.00
> open savings S2 Meera 500
Error: savings accounts need an opening deposit of at least Rs 1,000.00
> open fixed F1 Kiran 1000
Error: account type must be savings or current
> deposit S1 4999.50
S1: deposited Rs 4,999.50, balance Rs 29,999.50
> withdraw S1 28500
S1: withdrew Rs 28,500.00, balance Rs 1,499.50
> withdraw S1 2000
Declined: S1: only Rs 499.50 available
> withdraw C1 7500
C1: withdrew Rs 7,500.00, balance Rs -4,500.00
> withdraw C1 600
Declined: C1: only Rs 500.00 available
> transfer S1 C1 10000
Declined: S1: only Rs 499.50 available
> transfer C1 S1 400
Transferred Rs 400.00 from C1 to S1
> transfer C1 S9 100
Error: no account S9
> deposit S1 12.345
Error: amounts must be positive with at most two decimals
> deposit S1 abc
Error: 'abc' is not an amount
> interest 6%
S1: interest Rs 9.50
> statement S1
Statement for S1 (savings, Asha)
  opening deposit             +25,000.00     25,000.00
  deposit                      +4,999.50     29,999.50
  withdrawal                  -28,500.00      1,499.50
  transfer from C1               +400.00      1,899.50
  interest @ 6% p.a.               +9.50      1,909.00
> statement C1
Statement for C1 (current, Ravi)
  opening deposit              +3,000.00      3,000.00
  withdrawal                   -7,500.00     -4,500.00
  transfer to S1                 -400.00     -4,900.00
> accounts
  S1    savings  Asha        Rs 1,909.00
  C1    current  Ravi       Rs -4,900.00
  Net balance of all accounts: Rs -2,991.00
> quit
