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
Get step-by-step solutions from verified subject matter experts
