Language C++!
In part 2, you will be focusing on allowing one of the fourtransactions listed below to be completed by the user on one of hisaccounts: checking or savings. You will include defensiveprogramming and error checking to ensure your program functionslike an ATM machine would. The account details for your customerare as follows:
Customer | Username | Password | Savings Account | Checking Account |
Robert Brown | rbrown | blue123 | $2500.00 | $35.00 |
For this report, update the C++ program that allows the accountowner to complete one of the 5 functions of the ATM:
1 – Deposit (adding money to the account)
2 – Withdrawal (removing money from theaccount)
3 – Balance Inquiry (check current balance)
4 – Transfer Balance (transfer balance from one account toanother)
5 – Log Out (exits/ends the program)
After a transaction is completed, the program will update therunning balance and give the customer a detailed description of thetransaction. A customer cannot overdraft on their account; if theytry to withdraw more money than there is, a warning will be givento the customer. Also note that the ATM doesn’t distribute orcollect coins – all monetary values are in whole dollars (e.g. aninteger is an acceptable variable type). Any incorrect transactiontypes will display an appropriate message and count as atransaction.