Question: Construct a finite-state machine for entering a security code into an automatic teller machine (ATM) that imple- ments these rules: A user enters a string
Construct a finite-state machine for entering a security code into an automatic teller machine (ATM) that imple- ments these rules: A user enters a string of four digits, one digit at a time. If the user enters the correct four digits of the password, the ATM displays a welcome screen. When the user enters an incorrect string of four digits, the ATM displays a screen that informs the user that an incorrect password was entered. If a user enters the incorrect password three times, the account islocked.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
