Tag: Little Man Computer

Triangular Numbers using LMC

triangular-number-10

A triangular number correspond to the number of dots that would appear in an equilateral triangle when using a basic triangular pattern to build the triangule. The triangular numbers sequence contains all the triangular numbers in order. The first 10

Little Man Computer – Max Function

LMC-Max

In this challenge we will create a computer program using LMC (Little Man Computer) that takes two inputs and outputs the larger (max) of the the two inputs. By completing this challenge we will investigate the use of the branching

Little Man Computer: Countdown Timer

LMC-Flowchart-Countdown

In this challenge we will create a computer program using LMC (Little Man Computer) that takes a number as an input (e.g. 5) and outputs a countdown from this value. (e.g: 5.4.3.2.1.0). By completing this challenge we will investigate the

Little Man Computer: Mini Challenges

LMC-Challenge-9

By completing this set of 12 mini challenges you will write programs using Little Man Computer using all the instructions of the LMC instruction set (See below). You will start with basic Input / Process / Output challenges based on

Little Man Computer: Factorial Challenge

arithmetic-quiz-calculator

In Mathematics, the factorial of n is denoted by n! and calculated by the product of integer numbers from 1 to n. For instance: In this challenge you will write a program using Little Man Computer to ask the user

Little Man Computer: Multiplication

calculator-lmc

Write an LMC program to let the user enter two numbers, num1 and num2. The program should output the results of multiplying these two numbers: num1 x num2. LMC Simulator Online LMC Simulator Solution While checking the Little Man Computer

Little Man Computer: 5+4+3+2+1

lmc-numbers

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.

Little Man Computer – Burglar Alarm

burglar-alarm-pin-code

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