Question: Use C++ to write a program that acomplishes the following Develop a bank account class and write a driver program to use the class for

Use C++ to write a program that acomplishes the following

Develop a bank account class and write a driver program to use the class

for normal banking activities.

This bank account class allows 1. Withdrawal of money at any time 2.All operations normally expected of a bank account (implemented with member functions) 3. Storing an account balance 4. Storing the accounts interest rate

5. Update the balance with one year interest.

The class definition is as follow:

Class BankAccount

{

public:

BankAccount(int dollars, int cents , double rate);

BankAccount(int dollars, double rate);

BankAccount();

void update();

double get_balance();

double get_rate();

void output(ostreams &out)

private:

double balance;

double interest_ate;

double fraction(double percenrt);

}

Write all the member(method) functions in a separate C++ surce file.

The class def. in a class header file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!