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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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