Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Code a C++ class that keeps track of a bank account, recording deposits and withdrawals. 2. There should be 4 class private members: a.
1. Code a C++ class that keeps track of a bank account, recording deposits and withdrawals. 2. There should be 4 class private members: a. Current balance of type float. b. Bank ATM ID of type int set equal to 5689. c. Bank minimum balance, which is set equals to $300 of type float. d. Customer legal name. 3. It should have a constructor to set the Current balance and legal student name. Prompt the user to enter Current balance and Customer name in the int main function. The current balance should be set at $600 4. Prompt the user to enter his/her ATM ID pin. If the personal pin matches the bank kept pin (Bank ATM ID) at most 2 attempts, code a switch menu for banks transactions. The switch menu should be d for deposit, or w for withdrawal. Next, call a member function to implement a withdrawal or deposit. If the withdrawal is greater than the balance, write an error message in the member function. In output text file, write the current balance and transactions (withdrawal/deposit) 5. If a customer balance is less than Bank minimum balance, debit the account with $7.00. C. Ask if.you ane custome, if n-+ Change 20 "Not , data input/output w 2500 will create error message w 500 d 1500 d 700 w 1200 d 190 w 1970 w 85 d 600 d 800 w 1100 . balance = ? balance? balance = ? balance = ? balance-? balance = ? balance = ? balance balance = ? balance =
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started