Assume you have to simulate an ATM machine. The operations are 1 show balance 2
ID: 3640330 • Letter: A
Question
Assume you have to simulate an ATM machine. The operations are 1 show balance 2 Deposit 3Withdrawal. Assume a bank account exists and setup a variable for the balance (amount) in the
account. Write a small interactive program where the user enters ‘B’, ‘D’ or ‘W’ to choose which
operation they would like. Use a switch statement to output the balance on screen or add a user
input amount to the existing balance or subtract a user input amount from the balance.
Can you please make it very simple and explain the code. Thanks
Explanation / Answer
please rate - thanks
check your messages
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.