Question: Problem 1) Write a MATLAB script that would simulate a user-interface for an Automated Teller Machine (ATM), When it first executes, it should ask the
Problem 1) Write a MATLAB script that would simulate a user-interface for an Automated Teller Machine (ATM), When it first executes, it should ask the user to enter a PIN. You may have this PIN stored as a variable in the system. If the user fails to enter the PIN correctly in 3 attempts, it should inform the user that the bank card they have entered is being destroyed, ending the program/loop. After entering the correct PIN, it should then present the user with options to 1) Deposit Funds 2) Withdrawal Funds 3) View Balance 4) Exit Note - use a switch/case structure for this section. You may want to use fprintf and input combined to make a menu with descriptions as above. Each selection should then allow the user to input an amount of money to add/subtract from their balance based on user inputs... or view the balance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
