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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started