More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
Python IDE Dashboard
Tag: LMC

Triangular Numbers using LMC

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

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

Little Man Computer: Countdown Timer

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

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

Understanding Memory Address Modes

There are many ways to locate data and instructions in primary memory and these methods are called “memory address modes”. Memory address modes determine the method used within the program to access data either from the Cache or the RAM.

Little Man Computer: Factorial Challenge

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

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

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

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

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

Privacy Overview

This website will store some information about your preferences on your own computer inside a tiny file called a cookie. A cookie is a small piece of data that a website asks your browser to store on your computer or mobile device. The cookie allows the website to remember your actions or preferences over time.

You can delete all cookies that are already on your computer, and you can set most browsers to prevent them from being placed. However, if you do this, you may have to manually adjust some preferences every time you visit a site, and some services and functionalities may not work.

Most browsers support cookies, but you can set your browser to decline them and can delete them whenever you like. You can find instructions here for how you can do that on various browsers.

This website uses cookies to:

  1. Identify you as a returning user and to count your visits in traffic statistics analysis
  2. Remember your custom display preferences (such as light/dark theme option)
  3. Provide other usability features, including tracking whether you have already given your consent to cookies

Enabling cookies is not strictly necessary for the website to work but it will provide you with a better browsing experience.

The cookie-related information is not used to identify you personally and is not used for any purpose other than those described here.

There may also be other types of cookies created after you have visited this website. This site uses Google Analytics, a popular web analytics service that uses cookies to help to analyse how users use the site. The information generated by the cookie about your use of this website (including your IP address) will be transmitted to and stored by Google on servers in the United States. Google will use this information for the purpose of evaluating your use of other website, compiling reports on website activity, and providing other services relating to website activity and internet usage. Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. Google undertakes not to associate your IP address with any other data held by Google.