Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**Again we are using only condition statements, loops, functions, files, and arrays. Do not use material from 1337 such as classes. Make sure to add
**Again we are using only condition statements, loops, functions, files, and arrays. Do not use material from 1337 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: . 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 **Again we are using only condition statements, loops, functions, files, and arrays. Do not use material from 1337 such as classes. Make sure to add comments* When you are done, zip the entire folder with all the files as they are (I want to be able to simply unzip your folder and open your project, the Accounts file should have Minimum 5 accounts already in there) If you have any questions about this assignment, please let me know so I can clarify the instructions and requirements
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