Phase 1
Phase 1
Phase 1
In this assignment you will create a program that allows a user to do the
following:
Now if login was successful the user will be able to do the following:
1) Withdraw money.
2) Deposit money.
3) Request balance.
4) Quit the program.
If login was not successful (for example the id or password did not match)
then the user will be taken back to the introduction menu.
l -> Login
c -> Create New Account
q -> Quit
>l
l -> Login
c -> Create New Account
q -> Quit
>c
l -> Login
c -> Create New Account
q -> Quit
>l
Please enter your user id: 12
Please enter your password: 2345
Access Granted!
>d
>r
>w
>r
>q
Phase 1 of this project will require you complete the code found on the next page.
// CODE STARTS HERE
#include <iostream.h>
#include <stdlib.h>
// function prototypes
void printIntroMenu();
void printMainMenu();
void start();
void login();
void createAccount();
// global variable (use this variable to store the user’s menu selection)
char menuInput;
return 0;
}
void printIntroMenu()
{
// WRITE CODE HERE
}
void printMainMenu()
{
// WRITE CODE HERE
}
void start()
{
// EXPLANATION OF CODE THAT GOES HERE IS BELOW
}
void createAccount()
{
// PHASE 2
}
void login()
{
// PHASE 2
}
l -> Login
c -> Create New Account
q -> Quit
>
>
1) Displays the following message, “Please select an option from the menu below: ”
2) Displays the introduction menu. Do this by calling the function you created
earlier, printIntroMenu()
3) Program halts and waits for the user to make their selection. Use the cin >>
function to accomplish this step.