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++ !

PLEASE WRITE IN C++ ! GIVEN CODE: Encapsulation Exercise 4 Create the

GIVEN CODE:

class which represents a money deposit and withdrawal system. Given Code Requirements

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

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!