Question: PLEASE WRITE IN C++ ! GIVEN CODE: Encapsulation Exercise 4 Create the class which represents a money deposit and withdrawal system. Given Code Requirements -
PLEASE WRITE IN C++ !

GIVEN CODE:

Encapsulation Exercise 4 Create the class which represents a money deposit and withdrawal system. Given Code Requirements - The class only has one attribute, - is a double that represents the amount of money in the account which is when instantiated - The constructor takes NO parameter - Include the appropriate getter function that returns the amount of - There is NO setter function because a deposit and withdraw system typically starts with a value initially - Create two class functions, and takes in a double parameter and checks to see if it's greater than and adds that double to - If the parameter is less than or equal to the system will print cannot deposit a negative or 0 amount of money. - also takes in a double parameter and checks to see if it's greater than and subtracts that value from - If the parameter is less than or equal to the system will print cannot withdraw a negative or 0 amount of money. - If is less than the specified parameter, the system will print do not have enough funds to withdraw that amount. - Include BOTH the as well as the access modifiers in your class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
