Question: ( C++ Program) *** use only condition statements, loops, functions, files, and arrays. Do NOT use material such as classes. Make sure to add comments***

( C++ Program)

*** use only condition statements, loops, functions, files, and arrays. Do NOT use material such as classes. Make sure to add comments***

You are to write an ATM Program.

The ATM should allow the user to do the following:

1. Create account

2. Log in

3. Exit

When they press 1, they are asked for first name (capital first letter). Then it should ask for password. The computer should give the user a random 4 digit account number (cant start with a 0). Make sure you follow these rules:

---The user name should not be the same as another user's name. The account number should not be the same as the other user's account number.

---The new account should start off with 50 dollars.

---The accounts (including name, password and account number) should be on a file called Accounts. **use arrays to hold everyones information from the file, use a function to retrieve this data, which is done at the start of the program**

When you press 2, they are prompted to enter name, and password. You should have already received all information from the Accounts file as mentioned above. If they enter the wrong information 3 times, exit back to the previous window with the 3 choices. If they enter correctly, should do the followint:

---Withdraw - take money, if there is not enough money it should warn them and allow them to try again OR press -1 to return to previous window. Any other negative number should not work.

---Deposit - add money, if they do not want to add money, -1 will return to previous window while any other negative number will not work.

---View Balance - display balance and have user press enter to return to previous window.

--- Exit - exit the account and return back to the original screen with the 3 options. When this option is selected, it should update the Accounts file with the new information.

---Any other number will not work

When they press 3, thank them and exit program.

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!