Skip to content

← Grade 6

What Is a Computer?

Unit 1 · Computer systems

Hide the stories, facts, photos, activities and interactives, for revising before an exam
In this unit 9 sections
  1. What a computer does
  2. The parts that do the jobs
  3. Hardware and software
  4. Computers hiding everywhere
  5. Computers at work in Nepal
  6. From the abacus to the phone
  7. Who shapes computing?
  8. In short
  9. Exercise

Think about one morning. A phone’s alarm rings at six. Someone presses a button on a rice cooker and the display starts counting down. On the way to school, a traffic light turns red. In the market, a customer pays by scanning the shop’s QR code with a phone, and a man takes money out of an ATM.

Five machines, and every one of them has a computer inside. Some look like computers, with a screen. Others don’t look like computers at all. In this unit you will find out what makes a machine a computer, the four jobs every computer does, the difference between the parts you can touch and the instructions you can’t, where computers hide, and how people turned a frame of beads into the phone in your pocket.

What a computer does

Open the calculator on a phone. Tap 7, then +, then 5, then =. The screen shows 12.

Three things happened. You put numbers in. The phone worked out the answer. The answer came out on the screen. Every computer, big or small, works like this.

A computer is a machine that takes in information, works on it by following a list of instructions, and gives out the results. It can also keep information to use later. The information a computer works with is called data: numbers, words, pictures, sounds, a tap on a screen, the temperature of a pot.

The list of instructions a computer follows is called a program. A computer can do only what its program tells it, but it does it very fast and never gets bored. You will write your own instructions in Unit 3 and your first programs in Unit 4.

The four jobs

Everything a computer does is made of four jobs:

  • Input: data going into the computer. Your taps on the calculator are input.
  • Processing: the computer working on the data, following its program. Adding 7 and 5 is processing.
  • Output: results coming out of the computer, for people or for other machines. The 12 on the screen is output.
  • Storage: keeping programs and data so they can be used again later, even after the machine is switched off. The calculator app itself is kept in the phone’s storage, and so is a list of your last sums, if your calculator keeps one.
data goes inis worked onresults come outInputkeyboard, touchscreenmicrophone, camerasensors, buttonsProcessingthe processor carriesout the program’sinstructionsOutputscreen, speakerprinter, lampsmotors, heatersStoragekeeps programs and data,even when switched offsavesreads Inputdata goes inkeyboard, touchscreenmicrophone, camerasensors, buttonsProcessingis worked onthe processor carriesout the program’sinstructionsOutputresults come outscreen, speakerprinter, lampsmotors, heatersStoragekeeps programsand data, evenwhen switched offsavesreads
Figure 1.1 The four jobs of a computer. Data goes in (input), the processor works on it by following a program (processing), and the results come out (output). Storage keeps programs and data for later: the processor reads from it and saves to it.

Take a photo with a phone. The camera takes in light: input. The phone turns the light into a picture and makes it brighter: processing. The picture appears on the screen: output. It is saved, so you can show it to your grandmother next week: storage.

You type a message to a friend and press Send. Which part is input?

Pick an answer to see why.

Which of these is storage?

Pick an answer to see why.

The parts that do the jobs

Each job has its own parts. The parts that bring data in are called input devices: a keyboard, a mouse, a touchscreen, a microphone, a camera, buttons. Machines also have sensors, input devices that measure something in the world by themselves: a thermometer inside a rice cooker, a fingerprint reader on a phone, a light sensor that makes a screen dimmer at night.

The parts that send results out are called output devices: a screen, a speaker, a printer, lamps, and in machines, motors and heaters that make things move or get hot.

Processing is done by the processor, a small chip, often no bigger than your thumbnail. It carries out the program’s instructions one tiny step at a time, but billions of steps every second. A phone’s processor is under its screen, on a board packed with other chips (Figure 1.2).

Storage keeps everything you want to keep: apps, photos, songs, documents. In a phone it is a chip on the same board. Some phones can also take a memory card, and a computer can save to a pen drive (a USB flash drive) to carry files to another computer. In Unit 5 you will see how storage keeps everything as zeros and ones, and how to measure how much it holds.

A small blue circuit board held between a person's fingers, covered with black chips of different sizes
Figure 1.2 The main board from inside a smartphone, out of its case. The processor and the storage are among the black chips. The board is smaller than a playing card, and it does all four jobs. Photo: Köf3, CC BY-SA 3.0

In a phone, all these parts are packed into one small case. A desktop computer, the kind in most school computer rooms, has them as separate pieces (Figure 1.3). You type on its keyboard and point with its mouse: input. You see the results on its monitor (its screen) and hear them from its speakers: output. The processor and the storage are inside a box beside the monitor, the system unit.

MonitorSystem unitSpeakerSpeakerKeyboardMouseUPS
MonitorSystem unitSpeakerSpeakerKeyboardMouseUPS

Monitor, keyboard and mouse traced from a photo by Kwangmo, CC0
System unit traced from a photo by Paowee, CC BY 4.0
Speakers traced from a photo by Evan-Amos, public domain
UPS traced from a photo by MSDN.WhiteKnight, CC0

Figure 1.3 A desktop computer as many school computer rooms have it. The keyboard and the mouse are input devices; the monitor and the speakers are output devices; the system unit holds the processor and the storage. The UPS (uninterruptible power supply) has a battery inside: when the electricity goes off, it keeps the computer running for a few minutes, long enough to save your work and switch off properly.

Try it

Input, output, processing or storage?

Each card names a part of a machine. Tap the job it does for the computer. Read the reason after each one, even when you are right.

a keyboard

What job does it do for the computer?

Tap a group above.

Card
1 of 12
Right the first time
0

A rice cooker has a sensor that measures how hot the pot is. Which job does the sensor do?

Pick an answer to see why.

Hardware and software

A phone you can hold in your hand. You can drop it and crack its screen. But you can’t hold the calculator app, or a game, or the alarm that wakes you up. Those are instructions, not objects.

The parts of a computer you can touch are called hardware: the screen, the buttons, the battery, the processor, the board, the cables. The programs that tell the hardware what to do are called software. Software is made of instructions, written by people called programmers.

A program you open on a phone or computer to do one job is called an app (short for application): a calculator, a camera app, a game, a browser for the web, a dictionary. Underneath them all runs one big program that starts when you switch the device on, looks after the hardware and opens the other apps. It is called the operating system, and you will meet it properly in Unit 2.

Hardware without software can do nothing at all: a phone with no programs in it is a dark piece of glass and metal. Software without hardware has nothing to run on. A computer needs both, the way a madal needs a drummer: the drum is the hardware, the rhythm the drummer plays is like the software.

The same hardware can do many jobs, just by changing the software. With one app, a phone is a calculator. With another, a torch, a map, a dictionary, a camera, a radio. Nothing in its hardware changed. This is what makes a computer different from most other machines: a fan can only blow, but a computer can do any job someone writes a program for.

Try it

Hardware or software?

Tap Hardware if you could pick it up, Software if it is a set of instructions.

a phone’s screen

Hardware or software?

Tap a group above.

Card
1 of 10
Right the first time
0

Which list has only software in it?

Pick an answer to see why.

Computers hiding everywhere

Most computers in the world don’t look like computers. They have no keyboard and often no screen. They are built inside other machines, and each does one job for that machine. A small computer like this, built into a machine, is called an embedded computer. A digital rice cooker, a washing machine, a television, a car, a lift and an ATM all have one or more inside.

The rice cooker

A plain electric rice cooker has no computer. It has one switch with a thermostat: while there is water in the pot, the pot stays near 100 °C. When the water has all soaked into the rice, the bottom of the pot gets hotter than that, and the switch clicks over to “warm”. The rule is built into the switch’s parts, and it can never do anything else.

A rice cooker with buttons and a display is different. Inside it, a tiny computer follows a program. Its inputs are the buttons and a temperature sensor under the pot. It processes them by following its program: soak the rice for a while, heat hard, then gently, check the temperature again and again. Its outputs are the heater and the display. It stores the programs for white rice, brown rice and porridge, and the time you set for the rice to be ready.

The front of a rice cooker with a small display showing a time, and buttons labelled Keep Warm, Start, Cancel, Timer, Hour, Min and Menu
Figure 1.4 The control panel of a rice cooker with a computer inside. The buttons are input; the display is output. The menu of different kinds of rice is stored in it. Photo: Rob Enslin, CC BY 2.0

The traffic light

At a crossing with a button for people on foot, a computer called a controller runs the lights. It sits in a metal box at the side of the road. Its input is the button, and at many junctions, sensors that feel cars waiting. Its output is the lamps. It stores its program and its settings: how long the green lasts, how long people get to cross.

Try it

The computer inside a crossing

Press the crossing button and watch which of the computer’s jobs is working at each moment. Then change the walk time kept in storage, and press the button again.

WAITWALKInputthe buttonOutputthe lightsProcessingrunning step 1 of 5Storagewalk time: 8 sthe program, below
  1. Cars green. Wait for the button.
  2. Button pressed: wait 3 s.
  3. Cars amber for 3 s.
  4. Cars red. WALK for the walk time.
  5. WAIT for 2 s. Go back to step 1.
Cars’ light
green
Walkers
WAIT
Time left in this step
–

Step 1: the controller checks its input again and again, waiting for the button. Press it.

A grey metal cabinet with its door open at a street corner, full of wires and electronic boards, beside a pole with a pedestrian signal
Figure 1.5 A traffic light controller, its door open, at a street corner. The computer that runs the lights and the crossing is inside the cabinet. Photo: booledozer, Public domain

The ATM

An ATM (automated teller machine) is a computer that gives out money. Look at one next time you pass: the card slot, keypad and screen are input; the screen, the cash slot, the receipt printer and the speaker are output. When you type your PIN, the ATM’s computer doesn’t decide by itself whether it is right. It sends a message to the bank’s computers, which check your PIN and how much money is in the account and send back an answer. Both store a record of every withdrawal. So taking out a thousand rupees uses at least two computers, often far apart, talking to each other. You will see how they talk in Unit 8.

An ATM of a bank in Nepal: a screen showing its main menu in English and Nepali (Cash Withdrawal, Balance Inquiry, Mini Statement, Pin Change), four buttons on each side of the screen, a green card slot, a keypad below, and the cash slot at the bottom
Figure 1.6 An ATM in Nepal, its menu in English and Nepali. The screen is output; the buttons beside it and the keypad are input. Your card goes into the green slot, and the cash comes out at the bottom. Photo: Science Playground

An ATM sends your PIN and the amount to the bank’s computers and waits for their answer. Why doesn’t it decide by itself?

Pick an answer to see why.

Computers at work in Nepal

Almost every kind of work in Nepal now uses computers, often several kinds at once. Each one takes a job that is slow, hard or impossible by hand and does it faster or more exactly.

Where A computing device used there What it does The problem it solves
a bank ATMs, and the bank’s own computers keep every account; let people take out money and pay at any hour no queues for cash; a record of every rupee that can’t be lost
a hospital X-ray and ultrasound machines, patient records turn signals from inside the body into pictures; keep each patient’s history doctors see inside without cutting; any doctor can see what was done before
a farm a phone with weather and market-price apps brings the weather forecast and the day’s prices for vegetables when to plant, spray or harvest; selling at a fair price
a shop a barcode scanner and a billing computer reads each item’s price and adds the bill; counts what is left fast, correct bills; knowing what to order
a hydropower plant control computers with sensors on the turbines and the river measure the water and the power, open and close gates steady electricity, and safety when the river floods
an airport check-in computers, radar and air traffic control track every plane in the sky and every seat booked planes kept safely apart; no seat sold twice
the government the census computers, ID and land records count the people and keep records for the whole country planning schools, roads and health posts where people really live

How does a barcode scanner help a shopkeeper?

Pick an answer to see why.

From the abacus to the phone

For most of history, a computer was not a machine. It was a person: someone whose job was to do long sums by hand, all day, for tax collectors, merchants, sailors and astronomers. The machines took over the name, and the job, much later.

Tools that store numbers

People have used counting boards, with pebbles or rods moved across lines, to help with sums for thousands of years. Later came the bead abacus, beads that slide on rods in a frame. The best known is China’s suanpan, which spread to Japan, where a smaller version became the soroban. Some children in Nepal learn mental arithmetic on a soroban-style abacus in classes after school.

Try it

Store a number on an abacus

On each rod, the bead above the bar is worth 5 when it touches the bar, and each bead below is worth 1 when it touches the bar. Tap a bead to move it. Show your age, then 1971, the year Nepal’s first computer arrived.

0thousands0hundreds0tens0ones
Number on the abacus
0

No bead touches the bar, so every rod shows 0. Tap a bead to push it to the bar.

Answer

An abacus is a great tool, but it is not a computer. It stores numbers, but it can’t process anything by itself: every move is decided by the person using it. Whatever follows the rules of adding is in that person’s head, not in the beads.

A long wooden Japanese abacus with many rods, each with one bead above a bar and four beads below
Figure 1.7 A soroban, the Japanese abacus: one bead above the bar and four below on every rod. Photo: Fisle, CC BY-SA 3.0

Machines with gears and cards

In 1642, in France, a young man of about 19, Blaise Pascal, built a machine with gears to help his father, a tax official, add up columns of numbers. Turn the wheels and the answer showed in little windows. It could do one kind of job only: its “program” was the shape of its gears.

In 1804, also in France, Joseph Marie Jacquard made a loom that wove patterns by itself, following holes punched in a long chain of cards. Change the cards, and the same loom wove a different pattern. That was a new idea: the machine stayed the same, and only the instructions changed. In other words, software.

A hand loom in a room with a whitewashed brick wall, pink threads stretched across it, and a long chain of punched cards hanging above it
Figure 1.8 A Jacquard loom in Varanasi, India, weaving with pink thread. The chain of punched cards hanging above it holds the pattern. Looms like this still weave Banarasi saris. Photo: Ramón from Llanera, España, CC BY-SA 2.0
A painted portrait of a young woman in a long purple dress with a lace shawl
Figure 1.9 Ada Lovelace, painted around 1840. Photo: Alfred Edward Chalon, Public domain

Electronic giants

In the 1940s, during the Second World War, governments paid for the first electronic computers, which worked with electricity alone and had no gears at all. In Britain, Colossus (1944) helped break the enemy’s secret codes; it was kept secret for 30 years. In the United States, the Army paid the University of Pennsylvania to build ENIAC, finished in 1945, to work out tables that told gunners how to aim.

ENIAC filled a large room and weighed about 27 tonnes, about as much as five elephants. It used about 18,000 glass valves, which glowed like light bulbs and kept burning out. It could add 5,000 numbers a second, which seemed amazing then; a phone’s processor today does billions of steps a second.

A black-and-white photo of two women in a large room setting switches and plugging cables into the tall panels of an early computer
Figure 1.10 Betty Jennings (left) and Fran Bilas setting up ENIAC in 1946. Each panel is part of the computer. Photo: Unidentified U.S. Army photographer, Public domain

Smaller, cheaper, everywhere

Then computers began to shrink. In 1947, scientists at Bell Labs in the United States made the first transistor, a tiny switch with no glass valve to burn out. In 1958 and 1959, Jack Kilby and Robert Noyce found ways to put many transistors and their wires onto one tiny piece of material: a chip. In 1969, a Japanese calculator company, Busicom, asked an American chip maker, Intel, for chips for its new calculators. Intel’s Ted Hoff, Stanley Mazor and Federico Faggin and Busicom’s Masatoshi Shima worked on it, and in 1971 they had the first microprocessor: a whole processor on one chip.

Cheap chips meant computers small enough to buy for a home. In the 1970s, people who loved electronics met in clubs to share the computers they built, and some of them started the companies that made the first home computers. By the 1990s, offices and schools had them. In 1989, Tim Berners-Lee invented the World Wide Web (Unit 8) at CERN, a physics laboratory near Geneva in Switzerland, and in 1993 CERN gave it to the world for free. From about 2007, phones with touchscreens and apps put a powerful computer in millions of pockets. Today a phone’s processor holds billions of transistors on a chip smaller than a fingernail.

A row of tall grey and blue cabinets with switches and lights on a panel, in a museum
Figure 1.11 An IBM 1401, the same model as Nepal’s first computer, at the Computer History Museum in California. It was built with transistors, not glass valves. Photo: ArnoldReinhold, CC BY-SA 3.0
When What changed Where
thousands of years ago counting boards Mesopotamia, Greece, Rome, China and elsewhere
hundreds of years ago the bead abacus (suanpan, then soroban) China, then Japan
1642 a calculating machine with gears (Pascal) France
1804 a loom that follows punched cards (Jacquard) France
1830s–1843 a machine designed to follow a program (Babbage); the first published program (Lovelace) England
1940s the first electronic computers (Colossus, ENIAC) Britain, the United States
1947–1959 the transistor and the chip the United States
1971 the microprocessor (Busicom and Intel); Nepal’s first computer Japan and the United States; Nepal
1970s–1990s computers at home, at school and at work everywhere
1989–1993 the World Wide Web Switzerland
from about 2007 phones that are full computers everywhere

What was new about Jacquard’s loom, which later computers took up?

Pick an answer to see why.

Who shapes computing?

Look back over the story. Computers were not made by one inventor. Many kinds of people and groups played a part, and each could do something the others could not:

  • One person can have a new idea and work it out: Pascal’s machine, Lovelace’s program, Berners-Lee’s web.
  • Organizations, such as companies, universities and bodies like the United Nations, can pay large teams and build things in great numbers: Intel’s chips, the University of Pennsylvania’s ENIAC, UNDP’s training.
  • Governments can pay for huge, costly projects and serve a whole country: the US Army’s ENIAC, Britain’s Colossus, Nepal’s census computer. They also make the rules for how computers may be used.
  • Communities, people who join in because they care, not because they are paid, can share what they know and make things free for everyone: the clubs that built early home computers, the volunteers who write Wikipedia in Nepali, the thousands of people who write free software together, which anyone may use.

Try it

Who shaped it?

Tap who played the main part in each step. Some have two right answers: then either one counts.

A calculating machine with gears is built to help with a father’s tax work.

France, 1642

Who did it?

Tap a group above.

Card
1 of 10
Right the first time
0

Volunteers in many countries, unpaid, write free programs together and let anyone use them. Who is shaping computing here?

Pick an answer to see why.

In short

Exercise

Which of these is the best description of a computer?

Pick an answer to see why.

Which of these is an output device?

Pick an answer to see why.

A friend says, “My phone’s battery is software, because the phone can’t work without it.” What is wrong?

Pick an answer to see why.

Which of these was made first?

Pick an answer to see why.

Why is an abacus not a computer?

Pick an answer to see why.

a.

Define a computer. Name its four jobs, and explain each with an example from a mobile phone.

Answer
b.

Sort these into input devices, output devices and storage: keyboard, printer, memory card, microphone, screen, camera, speaker, pen drive, mouse.

Answer
c.

What is the difference between hardware and software? Give three examples of each.

Answer
d.

Copy and complete the table for an ATM.

Job Parts of the ATM that do it
Input
Processing
Output
Storage
Answer
e.

A plain rice cooker and a rice cooker with buttons and a display both cook rice. Which of them has a computer inside? How can you tell?

Answer
f.

Name five machines in your home or town that have a computer inside, and give the input and output of each.

Answer
g.

Describe how computers are used in three kinds of work in Nepal, and say what problem each solves.

Answer
h.

Put these in the order they happened, and write one sentence about who made each: ENIAC; the bead abacus; the microprocessor; Pascal’s calculating machine; Ada Lovelace’s program; the World Wide Web.

Answer
i.

Give one example each of an individual, an organization, a government and a community shaping computing. What could each do that the others could not?

Answer
j.

The same phone can be a calculator, a torch, a map and a camera. Explain how, using the words hardware and software.

Answer