Little Man Computer - 101 Computing https://www.101computing.net Boost Your Programming Skills! Tue, 23 Jan 2024 17:23:08 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png Little Man Computer - 101 Computing https://www.101computing.net 32 32 Step Count Algorithm in LMC https://www.101computing.net/step-count-algorithm-in-lmc/ Fri, 10 Jan 2020 13:18:47 +0000 https://www.101computing.net/?p=10022 Count-controlled loops are used in many programs to increment a counter for each iteration of the loop. Per default the increment for the counter is +1. FOR counter FROM 1 TO 10: OUTPUT (COUNTER) However you can specify a different

The post Step Count Algorithm in LMC first appeared on 101 Computing.

]]>
Higher or Lower LMC Challenge https://www.101computing.net/higher-or-lower-lmc-challenge/ Thu, 17 Oct 2019 09:44:37 +0000 https://www.101computing.net/?p=9508 For this challenge you will write a program of Guess the number (Higher or Lower?) using LMC assembly language. Your program will be used by two users (player A and player B) as follows: Ask player A to input a

The post Higher or Lower LMC Challenge first appeared on 101 Computing.

]]>
Fibonacci Sequence using LMC https://www.101computing.net/fibonacci-sequence-using-lmc/ Tue, 24 Sep 2019 16:40:10 +0000 https://www.101computing.net/?p=9385 Did you know? The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 … where the next number is found by adding up the two numbers just before it. The first

The post Fibonacci Sequence using LMC first appeared on 101 Computing.

]]>
LMC Simulator https://www.101computing.net/lmc-simulator/ Wed, 18 Sep 2019 20:39:24 +0000 https://www.101computing.net/?p=9304 LMC simulators are based on the Little Man Computer (LMC) model of a computer, created by Dr. Stuart Madnick in 1965. The LMC simulator is generally used to for educational purposes, because it models a simple Von Neumann architecture computer

The post LMC Simulator first appeared on 101 Computing.

]]>
Triangular Numbers using LMC https://www.101computing.net/triangular-numbers-using-lmc/ Mon, 01 Oct 2018 09:57:37 +0000 https://www.101computing.net/?p=7356 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

The post Triangular Numbers using LMC first appeared on 101 Computing.

]]>
Little Man Computer – Max Function https://www.101computing.net/little-man-computer-max-function/ Fri, 21 Sep 2018 17:36:01 +0000 http://www.101computing.net/?p=7249 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 two inputs. By completing this challenge we will investigate the use of the branching instructions

The post Little Man Computer – Max Function first appeared on 101 Computing.

]]>
Little Man Computer: Countdown Timer https://www.101computing.net/little-man-computer-countdown-timer/ Fri, 21 Sep 2018 16:20:25 +0000 http://www.101computing.net/?p=7230 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

The post Little Man Computer: Countdown Timer first appeared on 101 Computing.

]]>
Little Man Computer: Mini Challenges https://www.101computing.net/little-man-computer-mini-challenges/ Wed, 19 Sep 2018 13:26:58 +0000 http://www.101computing.net/?p=7208 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

The post Little Man Computer: Mini Challenges first appeared on 101 Computing.

]]>
Little Man Computer: Factorial Challenge https://www.101computing.net/little-man-computer-factorial-challenge/ Fri, 05 May 2017 14:20:39 +0000 http://www.101computing.net/?p=4543 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

The post Little Man Computer: Factorial Challenge first appeared on 101 Computing.

]]>
Little Man Computer: Multiplication https://www.101computing.net/little-man-computer-multiplication/ Fri, 28 Apr 2017 14:45:45 +0000 http://www.101computing.net/?p=4508 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 Simulators Online LMC Simulator Alternative LMC Simulator Solution While checking the

The post Little Man Computer: Multiplication first appeared on 101 Computing.

]]>