Question: Create a Little Man Computer program that allows a user to input a PIN code in order to deactivate an Electro - Magnetic Door Lock
Create a Little Man Computer program that allows a user to input a PIN code in order to
deactivate an ElectroMagnetic Door Lock EM Lock
Program Requirements:
Users are allowed up to three attempts to enter the correct PIN code.
The PIN code to deactivate the lock is set as
Output Specifications:
If the user inputs the correct PIN code, the program should output the value
If the user inputs an incorrect PIN code, the program should output the value
indicating that the user has another opportunity to enter the correct PIN
code.
If after three attempts, the PIN code entered is still incorrect, the program
should output the value to signal that no further attempts are allowed and
the alarm will be activated.
Run your program using LMC simulator which can be downloaded online.
After testing your program, compare and comment on the results to evaluate the
functionality and user interaction of your PIN entry system.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
