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

Binary search in array: - c program, Binary search in array: - C program: ...

Binary search in array: - C program: Write a program in c to define binary search in array. void main()                 {                 clrscr();

Padovan string , write a program that counts the number of occurences of th...

write a program that counts the number of occurences of the string in the n-th Padovan string P(n) program in java // aakash , suraj , prem sasi kumar kamaraj college progr

Luminous jewels polishing necklace, 1.jewels can only be removed for polish...

1.jewels can only be removed for polishing from either end of the necklace. 2.cost of polishing=sitting number*colour value of jewels.

Define the bitwise operators in c language, Define the Bitwise Operators in...

Define the Bitwise Operators in c language? C has distinction of supporting special operators that known as bit wise operators for manipulation of data at bit level. These oper

Illustrate the example of constructor, A Constructive Example Consider ...

A Constructive Example Consider an example , to model a user-defined data type for  strings. The object simulates a character array ( string ) using a character pointer and an

Operator precedence and associatively, Op e r a t o r P r e c e d ...

Op e r a t o r P r e c e d e n c e a n d A s s o c i a t i v e l y : T h e op e r a t o r p r e c e d e n c e a n d i

C program to change feet and inches into meter, Aim: To implement a progra...

Aim: To implement a program to convert distance given in feet and inches into meters and centimeters and vice versa. Code:                         class mcm; class

Abstract class Employee , I have to add virtual void calculatePay and virtu...

I have to add virtual void calculatePay and virtual void displayEmployee. How to I implement that in Salaried and Hourly Employee?

Change to palindrome, A palindrome is a string that reads the same from bot...

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

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