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 Electro-Magnetic Door Lock (EM Lock).
Program Requirements:
Users are allowed up to three (3) attempts to enter the correct PIN code.
The PIN code to deactivate the lock is set as "501".
Output Specifications:
If the user inputs the correct PIN code, the program should output the value
'1'.
If the user inputs an incorrect PIN code, the program should output the value
'9', indicating that the user has another opportunity to enter the correct PIN
code.
If after three (3) attempts, the PIN code entered is still incorrect, the program
should output the value '-1' 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.
 Create a Little Man Computer program that allows a user to

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!