Find a course

Module 2: Inside the MachineLesson 5 of 78 min

Software and Programs

Hardware needs instructions to do anything. Learn what software, apps and operating systems are, why instructions must be exact, and what a bug is.

Step 1 of 13Learn

Instructions make it go

Without instructions, a computer is just a box of parts. The instructions are called software. A program is one set of instructions for one job, and an app is a program you use on a phone, tablet or computer.

Hardware is the parts you can touch. Software is the instructions you cannot touch. You need both, like a piano (hardware) and the music sheet (software).

Step 2 of 13Practice · Sort into groups

Hardware or software?

Tap an item, then tap its group (or drag it there).

Step 3 of 13Compare

Hardware vs. software

AspectHardwareSoftware
What is it?PartsInstructions
Can you touch it?YesNo
ExamplesMouse, screen, chipGames, apps, drawing program
Piano ideaThe pianoThe music sheet

Step 4 of 13Learn

The boss program

When you turn on a computer, the first big program to start is the operating system. It is the boss of the computer.

The operating system shows the home screen, opens and closes apps, decides which app gets to use memory, and talks to the hardware. Some famous operating systems run on laptops, and others run on phones.

Every other app runs on top of the operating system, like players on a field the operating system takes care of.

Step 5 of 13Practice · Diagram

Who sits on top of whom

Which layer is the boss that talks to the hardware for the apps?

Tap the shape that answers the question, then press Check.

Who sits on top of whomLayer diagram: Apps and games, Operating system, Hardware.Apps and gamesOperating systemHardware
Apps and games

What you open and use.

Operating system

The boss: opens apps and shares memory.

Hardware

The parts you can touch.

Step 6 of 13Practice · Choose one

What does an operating system do?

Step 7 of 13Learn

Computers do exactly what you say

A computer follows instructions exactly, even silly ones. Imagine telling a robot friend how to make toast: "Put bread in toaster. Push lever." If you forgot "take bread out of the bag," it might push the whole bag in!

The people who write instructions are called programmers, and the instructions are written in code. When code has a mistake, it is called a bug. Finding and fixing bugs is called debugging.

Step 8 of 13Note

Step 9 of 13Diagram

Debugging loop

Debugging loopCycle diagram: Write code → Run it → Find the bug → Fix it.Fix bugsWrite codeRun itFind the bugFix it

Tap a shape with to see more.

Write code
Run it
Find the bug

Something did not do what you wanted.

Fix it

Change the instructions, then try again.

Step 10 of 13Practice · Put in order

Put the toast instructions in an order a computer could follow.

Drag the items, or use the arrow buttons, to put them in order.

  1. Put the slice in the toaster
  2. Take the toast out
  3. Take a slice of bread out of the bag
  4. Wait until the toast pops up
  5. Push the lever down

Step 11 of 13Practice · Match the pairs

Match each word to its meaning.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Program
  2. Programmer
  3. Code
  4. Debugging

Step 12 of 13Practice · True or false

If a program has a bug, the computer will usually figure out what you meant and fix it by itself.

Step 13 of 13Practice · Spot the mistake

Tap the word that makes this sentence wrong.