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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started