Assume that a bank maintains two kinds of accounts for customers,one called as Savings account and the other as Current Account.The Savings account provide compound interest and withdrawal facilities but no cheque book facility.The Current Account provides cheque book facilty but no interest. Current Account holders should also maintain a minimum balance and if the balance falls below this level, a service charge is imposed.
Create a Class Account that stores customers name,account number and type of account.From this derive the classes Cur-Acct and Sav-Acct to make them more specific to their requirements.Include necessary members functions in order to achieve the following tasks:
a) Accept deposit from a customer and update the balance.
b) Display the balance
c) Compute and deposit interest
d)Permit withdrawal and update the balance.

Recommended Answers

All 2 Replies

good luck.
And oh, what you call a "current account" is more generally known as a checking account.

OK, I created that class. Now would you like me to send it directly to your teacher on your behalf, or would you prefer to try to do it yourself?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.