atm program, C/C++ Programming

Assignment Help:
Ask quIn this assignment you will create an ATM Machine program (using C++) that allows a user to choose one of the following introduction menu items:

1) Create a bank account by supplying a user id and password.

2) Login using their id and password.

3) 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. Use a loop.

Now if login was successful the user will be able to do the following main menu items:

1) Withdraw money.

2) Deposit money.

3) Request balance.

4) Quit the program.

This is what your program in action will look like:

Hi! Welcome to the ATM Machine! Please select an option from the menu below:

l -> Login

c -> Create New Account

q -> Quit

> l

Please enter your user id: ab12

Please enter your password ab2345

******** LOGIN FAILED! ********

Please select an option from the menu below:

l -> Login

c -> Create New Account

q -> Quit

> c

Please enter your user name: ab12

Please enter your password: ab2345

Thank You! Your account has been created!

l -> Login

c -> Create New Account

q -> Quit

> l

Please enter your user id: ab12

Please enter your password: ab2345

Access Granted!

d -> Deposit Money

w -> Withdraw Money

r -> Request Balance

q -> Quit

> d

Amount of deposit: $20

d -> Deposit Money

w -> Withdraw Money

r -> Request Balance

q -> Quit

> r

Your balance is $20.

d -> Deposit Money

w -> Withdraw Money

r -> Request Balance

q -> Quit

> w

Amount of withdrawal: $2.5

d -> Deposit Money

w -> Withdraw Money

r -> Request Balance

q -> Quit

> r Your balance is $17.5.

d -> Deposit Money

w -> Withdraw Money

r -> Request Balance

q -> Quit

> q

Thanks for stopping by!

In introduction menu, 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, then the introduction menu will be displayed again. The login and password should be stored in a file. The account must be an object created using OOP. The class header must be in a separate file and the class methods codes as well.

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 introduction menu. Now, if login was successful, the banking main menu will be displayed to let the user choose one of the options. The initial balance for a new user account should be 0.000 OMR. 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.

Additional Instructions: Please make sure your code has following functions:

1. Once you execute the program. You must create an array of Bank Accounts and read the account information from a file.

2. introMenu(): Function to display the introduction menu for login, create account, and quit. Use a switch statement.

3. createAccount(): Function that accepts user ID and password to create the account.

4. login(): Function to match user ID and password to indicate if login is successful or not.

5. mainMenu(): Function to display the main menu choices for Deposit, Withdrawal, Balance and Quit. Use a switch statement.

6. deposit (): Function to accept the amount user wishes to deposit in his/her account.

7. withdraw(): Function to accept the amount user wishes to withdraw from the account.

8. displayBalance(): Function to display the balance amount in the user account.

9. Once the user exists the program, you should update the bank accounts information from the array.

Expert Answer100%(1 rating)
//Account.h #include using namespace std; class persons { public: string username; string password; double balance = 0; }; class Account { public : fstream f1; persons p1; void ... view the full answer
estion #Minimum 100 words accepted#

Related Discussions:- atm program

Explain the working of strcmp and strcat function, Explain the working of s...

Explain the working of strcmp and strcat Function? strcmp() : This function is meant to use to compare two strings. The strcmp() function acknowledge two strings as argument

C program for dynamic data structure(linked list), Aim: To implement a pro...

Aim: To implement a program for dynamic data structure(linked list). Code:                       class node {             int data;             node *next;

Compiling/ installing openvpn client within an ip camera, Project Descripti...

Project Description: I want someone with experience on adding/compiling/installing the OpenVPN client software within an IP network camera's embedded operating system. Either if

Decompression of files compressed with LZW, The files are meteorological ra...

The files are meteorological radar data whose decompression is badly needed for relative study. Please contact Kathy Lee (Email: ; Cell phone: 0086 15701799056) or Mr. Zhu (Email:

Palindrome, A palindrome is a string that reads the same from both the ends...

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

Pattern, enter height of the shape: 1 3 5 3 1 3 5 7 5 3 5 7 9 7 5 3 5 7...

enter height of the shape: 1 3 5 3 1 3 5 7 5 3 5 7 9 7 5 3 5 7 5 3 1 3 5 3 1

#compiler design limiting instrutions, Ravi is a newbie to the programming ...

Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''''''''{'''''''' and end wi

Develop activation tool for unattend reseal.xml, Project Description: We...

Project Description: We refurbish older computer and send them back into the market with windows 7 operating system. We are presently using windows deployment services through P

Explain different implementations of oop, Different implementations of OOP ...

Different implementations of OOP Object-oriented programming is not mainly concerned with the details of the program operation. Instead, it deals with the overall design of the

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