Write a c++ program for an atm machine.  Use an array with maximum number of accounts to be 100. ATM machine performs the following function: 1. create account  An account must have a unique id and 4 digit number pin. eg id = "yo" pin = "4444". if the given unique id is already taken ask the user to enter another unique id. also make sure the pin contains numbers only. 2. Login prompt the user to enter id and pin. incase any of the two is incorrect, print an error message saying incorrect pin or id. 3. withdraw withdraw  money from the available balance in the account. make sure the user is logged in. 4.  deposit deposit money in the account and update the balance.  again make sure user is logged in. 5. pin code change. this allows the user to change their pin. ask for previous pin code and then ask to enter new pin code. 6.  balance print the balance that is in the account. 7. logout. logout from the system.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

 

 

Write a c++ program for an atm machine.  Use an array with maximum number of accounts to be 100.

ATM machine performs the following function:

1. create account 

An account must have a unique id and 4 digit number pin. eg id = "yo" pin = "4444".

if the given unique id is already taken ask the user to enter another unique id. also make sure the pin contains numbers only.

2. Login

prompt the user to enter id and pin. incase any of the two is incorrect, print an error message saying incorrect pin or id.

3. withdraw

withdraw  money from the available balance in the account. make sure the user is logged in.

4.  deposit

deposit money in the account and update the balance.  again make sure user is logged in.

5. pin code change.

this allows the user to change their pin. ask for previous pin code and then ask to enter new pin code.

6.  balance

print the balance that is in the account.

7. logout.

logout from the system.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 7 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage