Write an LMC program to let the user enter a number n. The program should calculate the output n + (n-1) + (n-2) + … + 3 + 2 + 1. For instance if the user enters the value 5.…
Write an LMC program to let the user enter a PIN code to deactivate a burglar alarm. The program should let the user have up to 3 attempts to enter the correct PIN code before starting the alarm. The correct…