Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB PROBLEM (please DONT write code in Java script) Looping Designed to test skills: repetition structures (for and while loops), application of repetition structures (user

MATLAB PROBLEM (please DONT write code in Java script)

image text in transcribed

Looping Designed to test skills: repetition structures (for and while loops), application of repetition structures (user input, accumulation, aggregation, etc.), incrementing the loop index, and conditional statements ENGR 1221 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 run Welcome to the ATM What would you like t do (withdraw = 1, deposit Enter an amount to deposit 500 Your current balance is 10500.00 Are you finished (yes=1, n =0) ? 2, check balance = 3) : 2 What w uld y u like td (withdraw = 1 dep sit -2 check balance =3) : 3 Your current balance is 10500.00 Are you finished (yesno-0) 1 What w uld y u like t d (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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago