Question: LOOPING PROBLEM 7. Create the ATM simulation according to the following requirements. (1) Welcome the user. (2) provide three options: (a) to withdraw money, (b)

LOOPING PROBLEM

LOOPING PROBLEM 7. Create the ATM simulation according to the following requirements.

7. Create the ATM simulation according to the following requirements. (1) Welcome the user. (2) provide three options: (a) to withdraw money, (b) to deposit money, or (c) to check their balance. (3) For deposits and withdraws, prompt the user for an amount. (4) Display an appropriate error message if the user tries to withdraw more money than is available. (5) The account balance should update in response to the deposit/withdraw. (6) After the transaction is complete, have the program ask the user if they are finished. If yes then display the current balance, if not then the program should repeat the steps above (do not repeat the welcome) Assume the user starts with $10,000 in the bank. The following is an example of what your command window should look like after the program has rurn Welcome to the ATM What w uld y u like td (withdraw = 1, dep sit = 2, check balance = 3) : 2 Enter an amount to deposit 500 Your current balance is 10500.00 Are you finished (yes-1, n =0)? 0 What would y u like t d (withdraw = 1 deposit = 2 check balance =3 ) : 3 Your current balance is 10500.00 Are you finished (yes, no-0)1 What w uld y u like td (withdraw = 1 dep sit = 2 check balance =3) : 1 Enter an amount to withdraw: 492814 Error. You don' t have that much money in your account. Your current balance is 10500.00 Are you finished (yes 1, no-0)? 1 Thank you and have a nice day Test your program with the following transactions a. Deposit $250 b. Withdraw $11,000 c. Withdraw $1,800 d. Do nothing and check the balance

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!