English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2 answers

This is not a Java program. It is going to be three class definitions

See this link for some helpful information

2007-05-28 08:38:41 · answer #1 · answered by AnalProgrammer 7 · 0 0

This has been done quite a lot. There are probably quite a few examples on the web, for example:

http://condor.depaul.edu/~ymendels/211/Account.java

2007-05-28 15:42:29 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers