C++ Program: ATM Simulation to Check Balance, Deposit,  and Withdraw money.

By: Prof. Dr. Fazal Rehman Shamil | Last updated: July 25, 2024

Write a C++ program for simple ATM Simulation to Check Balance, Deposit,  and Withdraw money.

Possible Outputs

Output#1

ATM Menu:
1. Check Balance
2. Deposit
3. Withdraw
4. Exit
Enter your option (1-4): 1
Your current balance is: $1000.00

Output#2

ATM Menu:
1. Check Balance
2. Deposit
3. Withdraw
4. Exit
Enter your option (1-4): 2
Enter deposit amount: $500
Deposited $500.00. New balance is: $1500.00

Output#3

ATM Menu:
1. Check Balance
2. Deposit
3. Withdraw
4. Exit
Enter your option (1-4): 3
Enter withdraw amount: $200
Withdrew $200.00. New balance is: $1300.00\

Output#4

ATM Menu:
1. Check Balance
2. Deposit
3. Withdraw
4. Exit
Enter your option (1-4): 4
Exiting the ATM. Thank you!