Question: Same submission requirement as before. Your program must contain proper documentation. Every function must have function documentation header (see example from printMe First() function. You



Same submission requirement as before. Your program must contain proper documentation. Every function must have function documentation header (see example from printMe First() function. You must separate .h file from.cpp file. You must use Makefile. You .h file must use safeguard (use #ifndef ..... #endif) Below is details of this lab: Bank Accounts Implement a class Account. The class object account has: a data member balance (double balance) class member functions to o void deposit (double amount); o void withdraw (double amount); o double getBalance() const; Implement a class Bank. This bank has two class data member, Account checking and Account savings, of the type Account. Implement member functions: class Bank { public: Bank(); Bank(double checkingAmount, double savingsAmount); // deposit member function will call Account member function deposit void deposit(double amount, string account void withdraw(double amount, string account); void transfer(double amount, string account); void printBalances() const; private: ????? checking; // change ????? with correct data type for variable checking ??????? savings; // use correct data type for variable savings Charge a $5 penalty if an attempt is made to withdraw more money than what is available in the account. For example, if your checking account balance is 1000 and you want to withdraw 1500, then your program should not allow the withdraw, in addition, you need to change a over drawn penalty. So you balance would be $1000 - $5 = $995. Screenshot Here the account string is "S" or "C". "S" is for savings account. "C" is for checking account. For the deposit or withdraw, it indicates which account is affected. For a transfer it indicates the account from which the money is taken; the money is automatically transferred to the other account. Use global CONSTANT for penalty (PENALTY). Don't hard code the number in your code. You may need to add more member variables and functions to the classes thanthose listed above, and you need to implement these member functions. You must store class Account and class Bank in a h file. You must use safe guard (#ifndef) in the .h file. Implementation of the class member functions mustbe in a separate cpp file. You need to use Makefile to compile the programs. Use the c++ main program file below to run the program. sout _.000,00 w_post(2000 32000. w_man. 200, tractor si w_bank.pices: int main() { printMe First("Ron Sha", "CS-116-2021 Spring"); Bank my_bank; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
