Create a program that allows a user to create a bank account

Assignment Help C/C++ Programming
Reference no: EM13879788

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.

Reference no: EM13879788

Questions Cloud

Cooled and insulated surfaces after : Using a finite-difference solution with a space increment of ?x = 6 mm, determine temperatures at the cooled and insulated surfaces after 1 hour of exposure to the gas jets.
Write one page summary of seminar on portfolio theory : Write one page summary of seminar on Portfolio Theory - Will maximize return for a given level of risk, or and will minimize risk for a given level of return
What is your realized compound yield on the bond : Each year you reinvested all coupon interest at the prevailing reinvestment rate shown in the table below. Today is the bond's maturity date. What is your realized compound yield on the bond?
Combining negatively correlated assets can reduce the overal : Combining negatively correlated assets can reduce the overall variability of returns
Create a program that allows a user to create a bank account : Create a program that allows a user to choose one of the main menu items - If User enters an option other than C, L, or Q, the program does not do anything and shows a message wrong option and displays the menu again.
Water evaporation rate per unit area : What location on the van top will be the last to dry? What is the water evaporation rate per unit area (kg/s · m2) at the trailing edge of the van top?
How you will measure the results in kirkpatrick model : Analyze and determine the ethical considerations in such a study. Determine how you will measure the results, particularly in regard to Kirkpatrick's model
Calculate systematic risk and firm specific risk for stock : Calculate the standard deviation of the stock return (using the equation for R2 =β2σM2/σ2,and the individual regression results). Calculate systematic risk and firm specific risk for the stock.
Draw- the firm''s demand curve : The firm depicted in the table below is in a PERFECTLY COMPETITIVE MARKET.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Use a switch statement

Use a switch statement to write a program that prompts user to enter an character.

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Modify the class by adding a private int pointer

Modify the class by adding a private int pointer that will be used as an array. Create another overloaded constructor that takes an int pointer and int size as parameters.

  Dealerships are awarded the rebate

Dealerships are awarded the rebate on a quarter-by-quarter basis, only for quarters where their actual sales exceeded expected volumes for that quarter. Expected sales volumes for each quarter are as follows:

  Atm system code two classes with related attributes

Related to ATM system code two classes with realted attributes and operations!in C++

  Write a digital music manager

Your DMM program must have a text-based interface which allows the user to select from a menu of options including: load, store, display, insert, delete, edit, sort, rate, and exit. The "load" option reads records from a file into a dynamic doubly..

  Write c program that will input two values from the user

write c program that will input two values from the user with a prompt ? that are a value and a base with which you

  How nested if-statements replace with one if-statement

Describe how following nested If-statements could be replaced with one if-statement using logical operator (And/Or/Not). Write down the C++ code example.

  Consider the following schema of an online flight

consider the following schema of an online flight reservation agency.customercid lastname firstname dobflightfid

  Create a graphical (not text-based) visual c++ program

Create a graphical (not text-based) Visual C++ program that allows the user to enter the coefficients for a system of four equations with four unknowns. Include a button that when clicked, will solve the system of equations and display the results in..

  One time for the entire number set

You must run your program one time for the entire number set. Test for EOF (or use the function feof()) to know when to stop processing. You are to determine if each integer read is prime or not, and output the result to stdout

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd