Create a program that allows a user to choose one of the


In 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 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 -> Quit?Enter 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.

• You will need a file to hold the login/password and another file to store the transaction information similar to the information shown on the screen.

• Make sure you work out an algorithm and submit it as well either in the form of pseudo-code or flowchart before you start implementing the code. You can include your pseudo code within the block comment/header documentation part of the code. A pseudo code/algorithm should consist of clear and concise steps that mirror your implementation logic.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program that allows a user to choose one of the
Reference No:- TGS01165169

Now Priced at $80 (50% Discount)

Recommended (97%)

Rated (4.9/5)

A

Anonymous user

4/20/2016 1:58:02 AM

In this assignment you will make a program that permits a user to select one of the subsequent major menu items: C) Generate a bank account via supplying a user id and password. L) Login using their id and password? Q) Quit the program. If User penetrates an option other than (uppercase or lowercase) C, L, or Q, the program doesn’t do anything and illustrates a message wrong alternative and displays the menu again. When user enters option C, the program requests the user to enter a user ID and a password and effectively returns back to the main menu. The login and password must be stored in a file.