Need help with Programming c++ ATM

Nov 18th, 2015
SoccerBoss
Category:
Computer Science
Price: $60 USD

Question description

n this assignment you will create a program that allows a user to choose one of the following main menu items:

 C) Create a bank account by supplying a user id and password.

 L) Login using their id and password.

 Q) Quit the program. 

If User enters an option other than (uppercase or lowercase) C, L, or Q, the program does not do anything and shows a message wrong option and displays the menu again. 

When user enters option  C, the program asks the user to enter a user ID and a password and successfully returns back to the main menu. The login and password should be stored in a file. 

If the user chooses option L,  the program will display the login prompt and then, it will ask for the password. At this stage, the entered login and password are compared to the stored login/password pair and proper message will show up if the match was not found which takes the user back to the main menu. Now, if login was successful, the following banking menu will be display to let the user choose one of the following tasks:

W) Withdraw money.

 D) Deposit money.

 B) Request balance.

 Q) Quit the program

(again, remember that if the user enters an option other than (uppercase or lowercase) W, D, B, Q, the program should show a message and display the menu again.) 

The initial al balance for the user account should be $0.00 If the user chooses option W, the program should ask the user to enter amount user wishes to withdraw.

Validation: In the case of withdraw, if the amount is more than balance the user should be notified and no withdraw will occur.

If the user chooses option D, the program should ask the user how much amount the user wishes to deposit and add it to initial balance. 

If the user chooses option B, the program should display the balance amount in the user account. Sample Output: 

Hi! Welcome to Future Computer Programmer ATM Machine! Please select an option from the menu below:

 l -> Login 

c -> Create New Account 

q -> Quit
Enter your choice
 L 

Please enter your user id: 12

 Please enter your password 2345 

No match was found! Login Failed !

Please select an option from the menu below: 

l -> Login c -> Create New Account

 q -> Quit 

Enter your choice: c 

Please enter your user name: 12 

Please enter your password: 2345

Thank You! Your account has been created! 

Please select an option from the menu below: 

l -> Login 

c -> Create New Account 

q -> Quit 

Enter your choice: l

Please enter your user id: 12 

Please enter your password: 2345 

Access Granted!

Please select an option from the menu below 

d -> Deposit Money 

w -> Withdraw Money 

r -> Request Balance 

q -> QuitEnter your choice: d

Enter amount of deposit: $20 

$20 was deposited.

 Please select an option from the menu below 

d -> Deposit Money 

w -> Withdraw Money 

r -> Request Balance 

q -> Quit

Enter your choice: R 

Your balance is $20. 

Please select an option from the menu below 

d -> Deposit Money

 w -> Withdraw Money

 r -> Request Balance 

q -> Quit 

Enter your choice: W 

Enter amount of withdrawal: $25 

Sorry withdrawal amount exceeds the balance. Can’t withdraw ! 

Please select an option from the menu below

 d -> Deposit Money 

w -> Withdraw Money

 r -> Request Balance 

q -> Quit 

Enter your choice: W 

Enter amount of withdrawal: $2.5 

Please select an option from the menu below 

d -> Deposit Money

 w -> Withdraw Money

 r -> Request Balance 

q -> Quit 

Enter your choice: r 

Your balance is $17.5. 

Please select an option from the menu below 

d -> Deposit Money 

w -> Withdraw Money 

r -> Request Balance 

q -> Quit

Enter your choice: Q 

Thanks for stopping by!

Additional Instructions: Please make sure your code has following functions: 

1. mainMenu(): Function to display the main menu for login, create account, and quit.

 2. createAccount(): Function that accepts user ID and password to create the account.

 3. login(): Function to match user ID and password to indicate if login is successful or not.

 4. bankingMenu(): Function to display the menu choices for Deposit, Withdrawal, Balance and Quit.

 5. deposit (): Function to accept the amount user wishes to deposit in his/her account.

 6. withdraw(): Function to accept the amount user wishes to withdraw from the account.

 7. displayBalance(): Function to display the balance amount in the user account. You can use additional functions (optional) for input validation and withdrawal amount validation. Your program should make use appropriate switch and if-else statements where necessary

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: UIUC
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
tinytim47
Dec 4th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
Five Star Tutor
Nov 22nd, 2016
" Outstanding Job!!!! "
mixedballz
Nov 20th, 2016
" excellent work as always thanks for the help "
lilmoe415
Nov 11th, 2016
" Thank you, Thank you, for top quality work, this is your guy!! "
darnay
Oct 29th, 2016
" The best tutor out there!!!! "
dontuwannaknow
Oct 20th, 2016
" Excellent work as always thanks so much "
SjSurvivor143
Oct 6th, 2016
" Thanks for the help. "
Joemoe
Sep 23rd, 2016
" <3 it, thanks for saving me time. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1823 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors