Question: Write a C++ program that simulates an ATM machine. Assume that you have a bank balance of $1000 at Bobcats Bank. Write a C++ program

 Write a C++ program that simulates an ATM machine. Assume that

Write a C++ program that simulates an ATM machine. Assume that you have a bank balance of $1000 at Bobcats Bank. Write a C++ program that allows you to withdraw money from your account by entering your PIN number and the amount you would like to withdraw. The program should work as follows: If the user enters the wrong PIN number, display a message that says, "wrong PIN, please re-enter your PIN number" and ask them for the PIN again. After three incorrect tries, the program should quit with the message "wrong PIN, too many tries, your account has been locked". If the user enters the correct PIN, ask the user for the amount of money to withdraw. The user should not be allowed to request more money than their balance amount. Display a message indicating their new balance and quit the program. Display all dollar amounts in fixed format with two decimal places. Sample run (assuming the balance is $1000.00 and the PIN is 1234)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!