assigment, C/C++ Programming

Assignment Help:
C++ Programming Assignment ATM Machine Phase 1
In this assignment you will create a program that allows a user to do the following:
1) Create a bank account by supplying a user id and password. 2) Login using their id and password. 3) Quit the program.
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.
This is what your program in action will look like:
Hi! Welcome to Mr. Zamar?s ATM Machine!
Please select an option from the menu below:
l -> Login c -> Create New Account q -> Quit
> l
Please enter your user id: 12 Please enter your password 2345
******** LOGIN FAILED! ********
Please select an option from the menu below:
l -> Login c -> Create New Account q -> Quit
> c
Please enter your user name: 12 Please enter your password: 2345
Thank You! Your account has been created!
l -> Login c -> Create New Account q -> Quit
> l
Please enter your user id: 12 Please enter your password: 2345
Access Granted!
d -> Deposit Money w -> Withdraw Money r -> Request Balance
> d
Amount of deposit: $20
d -> Deposit Money w -> Withdraw Money r -> Request Balance
> r
Your balance is $20.
d -> Deposit Money w -> Withdraw Money r -> Request Balance
> w
Amount of withdrawal: $2.5
d -> Deposit Money w -> Withdraw Money r -> Request Balance
> r
Your balance is $17.5.
d -> Deposit Money w -> Withdraw Money r -> Request Balance
> q
Thanks for stopping by!
Phase 1 of this project will require you complete the code found on the next page.
// CODE STARTS HERE
#include #include
// 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;
// the main function int main() { // TO WRITE A WELCOME MESSAGE HERE
// call the function start start();
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 }
// CODE ENDS HERE
The function printIntroMenu() displays the following:
Please select an option from the menu below:
l -> Login c -> Create New Account q -> Quit
>
The function printMainMenu() displays the following menu:
d -> Deposit Money w -> Withdraw Money r -> Request Balance q -> Quit
>
The function start() does the following:
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.
4) Now use a switch statement to do the following: If the user types the character „l? then the function login() is called If the user types the character „c? then the function createAccount() is called. If the user types „q? your program will terminate by calling the function exit(0)

Related Discussions:- assigment

Store first n natural no in a file - c program, Program is to store first n...

Program is to store first n natural no in a file: Write a program to  store first n natural no in a file void main()     {     fstream file;     file.open("studen

Stack, Implement multiple stacks in a single dimensional array. Write algor...

Implement multiple stacks in a single dimensional array. Write algorithms for various stack operations for them.

Assignment, Programming Assignment # 1 C and UNIX   The purpose of this ...

Programming Assignment # 1 C and UNIX   The purpose of this assignment is to get you more familiar with Unix/Linux and those constructs of C that are not part of C++. Write a C

Program to create a class and store student information, Develop a Student ...

Develop a Student class that has the following header file: #ifndef STUDENT_H #define STUDENT_H #include #include #include using namespace std; class Stu

C program for even & odd no in any matrices , C Program for EVEN & ODD NO I...

C Program for EVEN & ODD NO IN ANY MATRICES #include stdio.h> #include conio.h> void main() {           int a[100][100];           int i=0,j=0,r,c,even=0,odd=0;

Pseudocode , Record separation problem Let us assume that a particular data...

Record separation problem Let us assume that a particular database program manages a simple mailing list which consists of one record for each person on the list, and a number of f

Volume, how to find the volume of cone , cylinder and sphere ?

how to find the volume of cone , cylinder and sphere ?

Padovan string, #question:-program to counts tha no of occurances of the st...

#question:-program to counts tha no of occurances of the string in the nth padovan string

Describe, A: Use operator overloading to present a friend right-shift opera...

A: Use operator overloading to present a friend right-shift operator, operator>>. It is similar to the output operator, except the parameter doesn't contain a const: "Fred&" instea

Write Your Message!

Captcha
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