WRITE THE NECESSARY C++ STATEMENTS 1. Write your own simple Account class. You should be able to make deposits and withdrawals and read out the balance – a private double variable. Member functions should be: void Account:withdraw(const double &amount); //Take from account void Account::deposit(const double &amount); // Put into account double account::balance(void); //Return the balance Make sure that the Account constructor function initialize the balance to zero. Show transcribed image text WRITE THE NECESSARY C++ STATEMENTS 1. Write your own simple Account class. You should be able to make deposits and withdrawals and read out the balance – a private double variable. Member functions should be: void Account:withdraw(const double &amount); //Take from account void Account::deposit(const double &amount); // Put into account double account::balance(void); //Return the balance Make sure that the Account constructor function initialize the balance to zero.
Expert Answer
Answer to WRITE THE NECESSARY C++ STATEMENTS 1. Write your own simple Account class. You should be able to make deposits and withd…