Question: C++ Can you please help me with how to make sure the transaction does not happen? I got the message to be sent if the

C++

Can you please help me with how to make sure the transaction does not happen? I got the message to be sent if the balance of deposit is more than 1000 but I do not know how to make sure it does not happen. I want the deposit to do not happened if the balance of deposit is more than 1000.

void BankAccount::Deposit(double d) { Balance = Balance + d; if (d > 1000) cout << "ERROR, The amount of the deposit is above the daily allowed deposit" << endl; }

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!