Construct a BankAccount class that contains the following data members:
1. userID (int)
4. currentBalance (float)
And the following accessor/mutator methods:
2. makeDeposit and
Notice the spelling of the data members/methods. Multiple words joined together w/o use of spaces, underscores or dashes. The first word starts with a lower case letter and the remaining words start with a capital letter. Also, class names should start w/capital letter. This convention.
Data error checking in this assignment is required.
Make the program interactive. Ask for user name and starting balance.
Have your program assign the user id.
Start by creating customers (allow user to input their name and starting balance).
Allow user to input as many customer accounts as they wish.
When all customer accounts have been created, start a 2 loop (inner and outer) process to perform the banking activity of getting balance, making deposits and/or withdrawals.
In the outer loop, show the users and their ID's and ask for a customer name or user ID that wishes to use the bank.
Search the database for the name or user ID. If one not found, so state and ask for another name, user ID or for user to type "Q" or "quit" to exit. Accept any character case.
When a match is established, start an inner loop that will perform as many of the banking transactions (obtain balance, make deposit or withdrawal) as customer wants. When customer signals (use your choice of signal) that they are finished, pass control back to the outer loop and ask for name or user ID of another customer to repeat inner loop processing. If user wants to quit, exit both loops and list the number of times each customer accessed their account (use static variable to provide this data).
When any customer requests, only, a statement of their current balance, pass the data by reference so that it cannot be changed (const) and give them their new balance.
Note: test all inputs. Program must not be allowed to crash (or loop endlessly). Users must be given descriptive
prompts when illegal characters are detected in inputs. IOW, make this a user friendly program.
degree of user friendliness and degree of detail presented.
A++ solution for this question
Solution contain C++ program.
Using DevC++ IDE to run (also using Visual Studio C++)