Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ The ATM should allow the user to do the following: 1. Create account 2. Log in 3. Exit When they press 1, they are

C++

image text in transcribed

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 *Again we are using only condition statements, loops, functions, files, and arrays. Do not use material from 1337 such as classes. Make sure to adod comments**

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions