-3

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 provides compound interest and withdrawal facilities but no cheque book facility. The current account provides cheque book facility 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 customer name, account number and type of account. From this derive the classes curacct and savacct to make them more specific to their requirements. Include necessary member functions in order to achieve the following tasks: (a) Accept deposit from a costumer and update the balance.

(b) Display the balance

(c) Compute and deposit interest.

(d) Permit withdrawal and update the balance.

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 provides compound interest and withdrawal facilities but no cheque book facility. The current account provides cheque book facility 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 customer name, account number and type of account. From this derive the classes currentaccount and savingsaccount to make them more specific to their requirements. Include necessary member functions in order to achieve the following tasks: (a) Accept deposit from a costumer and update the balance.

(b) Display the balance

(c) Compute and deposit interest.

(d) Permit withdrawal and update the balance.

Check for the minimum balance, impose penalty, necessary, and update the balance.

3
Contributors
3
Replies
22
Views
3 Years
Discussion Span
Last Post by arunava.iiitcal
Featured Replies
  • 2

    Sorry, but we don't do your homework for you... :-( Make an honest effort to solve the problem, post your code here along with the difficulties/errors you are having, and we may decide to help; however, if you don't make the effort first, you can forget about it! Read More

2

Sorry, but we don't do your homework for you... :-(
Make an honest effort to solve the problem, post your code here along with the difficulties/errors you are having, and we may decide to help; however, if you don't make the effort first, you can forget about it!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.