A bank has 2 kinds of accounts-saving and current. The saving provides compound interest & withdrawal facility but no cheque book. The current provides cheque book but no interest. Current acc holders should maintain a min. balance & if balance falls below this level, a service charge is imposed.
Create a class Account that stores customer name, account number & type of account. From this, derive the classes Curr-acc & Sav-acc to achieve foll. tasks:
*Accept deposit & update balance
*Display balance
*Compute & deposit interest
*permit withdrawal & update balance
*check min. balance & impose penalty,if necesaary, &update balance
2007-05-28
08:31:31
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design