Assume that bank maintains two kind of accounts for ...



Assume that bank maintains two kind of accounts for customers, one called as saving account and other as customer account.

The saving account provides compound interest and withdrawl facilities but no cheque book facility. The current account provides cheqe book facility but no interest.current account holders should also maintain a minimum balance and if the balance falls below tyis level,a service charge is imposed.

create a class account that stress customer name,account nos and type of account.from this device the classes current account and saving account to make them more specific to their requirements include necessary members functions in order to achieve the following tasks:-

a ACCEPT DEPOSITS FROM A CUSTOMER AND UPDATE THE BALANCE.

b. DISPLAY THE BALANCE.

c. COMPUTE AND DEPOSIT INTEREST.

d. PERMIT WITHDRAWL AND UPDATE THE BALANCE.

e. CHECK FOR THE MINIMUM BALANCE,IMPOSE PENALTY AND UPDATE THE

BALANCE.

#include"stdio.h"

#include"iostream.h"

#include"conio.h"

#include"process.h"

class account

{

int ac_no;

char ac_name[20];

protected:

int balance;

public:

void getinfo();

void display();

};

void account::display()

{

cout ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download