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.
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.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 7 images