Question: C++ PLEASE READ AND FOLLOW INSTRUCTIONS 2. Write an ATM program that accepts (as input from the user) a cash deposit. Then have the user

C++ PLEASE READ AND FOLLOW INSTRUCTIONS

2. Write an ATM program that accepts (as input from the user) a cash deposit. Then have the user make three separate withdraws (the user specifies a different cash amount each time). After each withdraw, inform the user of the balance of the account and amount withdrawn in a table format. (Meaning: use setw). If the user tries to withdraw more money than is in the account, give an error message. In addition, do not let the account go down to zero dollars (since they would be closing the account). Last thing, the user may only withdraw whole dollar amounts divisible by 5. (That means this ATM does not give out dollars, only 5, 10, 20s.) End the program (with return 0) anytime the user tries to enters bad data.

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!