What a computer actually does: input, processing, storage, output
On This Lesson 11 topics
Lesson Overview
Every app you have ever used (a calculator, a camera, a banking app, a game) is a computer doing the same four jobs over and over: taking something in, working on it, keeping some of it, and sending a result out.
In this lesson you will learn to see those four jobs in anything that has a computer inside. They are input, processing, storage, and output. No technical background is needed: every term is explained when it first appears.
Why this matters: the next lesson names the real parts that do each job (the CPU, memory, and disks), and later modules teach you to write programs that do these jobs on purpose. When you build a backend service, you will be designing exactly this: what comes in, what the program does with it, what it must remember, and what it sends back. The four-step map gives every later topic a place to attach.
This is the first lesson of the course, so it assumes no programming or computer science. The next lesson, "CPU, RAM, and storage: the kitchen analogy", gives names to the parts of a computer that carry out these steps.
Learning Objectives
By the end of this lesson you will be able to:
- Explain what a computer does using the four steps: input, processing, storage, and output.
- Identify at least one input, one processing action, one thing that is stored, and one output in an everyday device or app, such as a calculator, an ATM, or a camera app.
- Tell input from output, including devices that do both, such as a touch screen.
- Tell storage from output by asking two questions: who receives it, and will it still be there later.
- Explain, with an example, why a computer does exactly what its instructions say rather than what the person who wrote them meant.
- Describe how a request to a website follows the same four steps.
Written Explanation
What is a computer, really?
When people hear "computer" they often picture a laptop, or even just the screen. That picture is too small. A computer is any machine that follows instructions to work on information. A phone is a computer. So is an ATM, a smart TV, the display system in a car, and the machine that runs a website.
Two words in that sentence need a precise meaning, because the whole course depends on them:
- Data (or information) is what the computer works on: a number you type, a photo, a message, a temperature reading.
- Instructions are step-by-step directions that tell the computer what to do with the data. A list of instructions that does a useful job is called a program. Apps are programs.
So a computer takes in data, follows a program's instructions to do something with it, and produces a result. All of that fits into four steps.
The four steps
| Step | The question it answers | Calculator | ATM | Phone camera app |
|---|---|---|---|---|
| Input | What goes in? | You tap 2, +, 3 | Your card, your PIN, the amount you ask for | Light through the lens, your tap on the shutter button |
| Processing | What does the computer do with it? | Adds the two numbers | Checks the PIN and checks that your balance covers the amount | Turns the sensor's raw data into a photo (often adjusting brightness and colour) |
| Storage | What does it keep for later? | The last result (many calculators keep it for a "previous answer" key) | The new balance, kept by the bank | The photo, saved in your gallery |
| Output | What comes out? | 5 on the screen | Cash, a receipt, a message on the screen | The photo preview on screen, a shutter sound |
Let us look at each step on its own.
Input is anything that goes into the computer from outside. It can come from a person (keyboard, mouse, touch screen, microphone, camera), from the world (sensors such as GPS or temperature), or from another computer (a message arriving over a network, such as the page a website sends to your browser). Input is raw material: the computer has not done anything with it yet.
Processing is the computer working on the input by following instructions. It includes calculating (2 + 3), comparing (is the balance at least 100?), sorting a list, searching, converting a photo to another format, and deciding which instructions to follow next based on a comparison. This is the step you will control when you learn to program: writing a program means writing the processing instructions.
Storage is where the computer keeps data so that it is still available later. Without storage, a computer would forget everything the moment it finished using it: no saved documents, no photos, no contacts. In the next lesson you will see that a computer has more than one kind of storage, and why. For now, remember the job: keep it for later.
Output is anything that leaves the computer to reach a person or another computer: text and images on a screen, sound from a speaker, a printed page, a file written for another program to read, a message sent across the internet.
How the four steps fit together
Text version of this diagram
Three boxes in a row: Input, then Processing, then Output, joined by arrows pointing right. Below Processing is a box called Storage, joined to Processing by an arrow that points both ways, meaning processing can read from storage and write to it.
Read the picture like this: input goes to processing, and processing sends results to output. Processing can also read from storage and write to storage at any point. Storage is not "the last step". It is a place that processing visits whenever it needs to remember something, or to recall something it remembered earlier.
Two things this picture shows that often surprise beginners:
- The steps repeat constantly. A game runs this loop many times every second: it reads your controller (input), updates the game world (processing), draws the next frame (output), and remembers your score (storage).
- One device can play different roles at different moments. A touch screen is an input device when you tap it and an output device when it shows an image. A file that one program saves (output) can later be opened by another program as its input.
Telling the steps apart
Beginners most often mix up output and storage, because saving a file feels like "sending something out". Two questions help:
- Who or what receives it? If a person or another system receives the result, it is output.
- Will it still be here later, after the program stops? If the point is to keep it for later, it is storage.
Saving a document is storage: its purpose is to keep the document for later. Showing the document on the screen is output: its purpose is to deliver it to a person. One action in an app can trigger both, but they are different jobs.
A note on vocabulary: some textbooks call disks "input/output devices" too, because data travels to and from them. That is a fair description of the hardware. In this course we separate the jobs: storage means keeping data for later, and output means delivering a result to a person or another system.
Computers do exactly what the instructions say
A computer has no common sense and no idea what you intend. It carries out its instructions exactly, quickly, and without questioning them. That is why computers are so useful, and also why they can be so frustrating.
Imagine a spreadsheet where you want the total of a price plus its tax. You type a formula that multiplies the two cells instead of adding them. The spreadsheet multiplies perfectly. It does not "notice" that you probably meant to add. The result is wrong because the instructions were wrong, not because the computer made an error.
Programmers call a mistake in the instructions a bug. A large part of software engineering is writing instructions that say exactly what you mean, and finding the places where they do not. That is why this course spends time on precise, careful thinking before you write any code.
Examples
Example 1: a calculator (simple)
You tap 2, +, 3, and =.
- The four taps are the input.
- The app works out
2 + 3. That is the processing. - The app remembers the result so that a "previous answer" key can use it. That is storage. Not every calculator does this, but many do.
- The app shows
5on the screen. That is the output.
The amounts of data are tiny, but the shape is the same as in much bigger systems.
Example 2: withdrawing cash from an ATM (practical)
The details differ between banks and machines, but the roles are the same.
- You insert your card and type your PIN. (Input)
- The ATM checks that the PIN is correct. This is typically done by sending a message to the bank's computers and waiting for the answer. (Processing, partly on the bank's side)
- You enter the amount, for example 200. (Input)
- The bank's system compares your balance with 200. This is a decision: if the balance is enough, the withdrawal continues. If not, a message is produced instead of cash. (Processing)
- If the withdrawal is approved, the bank records it and updates your balance. (Storage)
- The ATM gives you the cash, prints a receipt, and shows a message. (Output)
Now change one input: suppose your balance is only 150. You gave the same inputs, but the processing step made a different decision, so the output is a "not enough funds" message. This shows that processing is where the computer chooses between outputs.
Notice also that the ATM's output (a request to the bank) is the input of the bank's computers. Outputs and inputs link computers together.
Example 3: sharing a photo (realistic)
- You take a photo. (Input: light through the lens and your tap)
- The app prepares the photo, for example by shrinking it so it uploads faster. (Processing)
- The photo is saved in your gallery. (Storage)
- The app sends the photo over the internet. (Output, to the network)
- Your friend's phone receives it. That arrival is input for their device, which then processes it, stores it, and shows it on the screen (output).
One device's output became another device's input. Almost every app you use is a chain like this.
Backend Insight
A backend is the part of an application that runs on servers and does the work behind what you see on your screen. A server is a computer that usually lives in a data centre or a cloud platform rather than on your desk. Because a server is a computer, the four steps still apply. What changes is where the input comes from and where the output goes: mostly other computers, not a person with a keyboard.
Here is a customer placing an order in a shopping app:
| Step | What happens in the backend |
|---|---|
| Input | The app on the customer's phone sends a request: "order these two items" |
| Processing | The backend code checks that the request is valid, works out the total price, and applies the shop's rules |
| Storage | The order is saved in a database so it is not lost |
| Output | The backend sends back a response, "order confirmed", which the phone shows to the customer |
You do not need the technical terms for this yet (request, database, and the rest come in later modules). What matters is that you can already describe the shape of the work.
This shape is also a debugging tool. Later, when someone reports "the order shows the wrong total", you can ask the four questions in order: Was the input what we expected? Did the processing follow the right rules? What did we store? What did we send back?
Common Mistakes
Mistake 1: "The computer is the screen" (or the box under the desk)
What goes wrong: you cannot reason about which part does which job. Why it happens: the screen and the keyboard are the parts you can see and touch. How to avoid it: a computer is the whole system doing the four steps. The monitor is an output device, the keyboard is an input device, and the part that does the processing is something else again (the next lesson names it).
Mistake 2: Thinking output only means "something on the screen"
- Incorrect: "This program has no output, because nothing appears on the screen."
- Correct: "This program shows nothing on the screen, but it writes a file and sends a message. Those are outputs."
Output also includes files, sounds, and messages sent to other computers. Many programs that run quietly in the background are made almost entirely of this kind of output.
Mistake 3: Mixing up storage and output
- Incorrect: "Saving a photo is output, because it goes out of the app."
- Correct: "Saving keeps the photo for later, so it is storage. Showing it on the screen, or sending it to a friend, is output."
Use the two questions: who receives it, and will it still be there later?
Mistake 4: Expecting the computer to understand what you meant
- Incorrect: "I asked it to add the tax, so the total should be right."
- Correct: "I gave it a formula that multiplies. It multiplied. The mistake is in my instruction."
When a result is wrong, start by checking what you actually told the computer to do, not what you meant to tell it.
Exercises
Try each exercise yourself before opening the solutions. Write your answers in your own words.
Level A: Foundation
A1. In one sentence each, say what input, processing, storage, and output mean.
Show solution A1
A1. Input: data that goes into the computer from a person, a sensor, or another computer. Processing: the computer working on that data by following instructions (calculating, comparing, deciding). Storage: keeping data so it is available later. Output: results leaving the computer to reach a person or another computer.
A2. Classify each device as an input device, an output device, or both: keyboard, speaker, touch screen, microphone, printer, game controller, headphones with a microphone, monitor.
Show solution A2
A2.
| Device | Answer |
|---|---|
| Keyboard | Input |
| Speaker | Output |
| Touch screen | Both: input when you tap, output when it shows an image |
| Microphone | Input |
| Printer | Output |
| Game controller | Input (many also vibrate, which is output, so "both" is acceptable if you explain it) |
| Headphones with a microphone | Both: the speakers are output, the microphone is input |
| Monitor | Output (a touch-screen monitor is both) |
A3. A snack vending machine takes your money and gives you a snack. Name one input, one processing action, one thing it stores, and one output.
Show solution A3
A3. Any reasonable answer is correct. Example: input is the coins or card and the button for the snack you choose. Processing checks that enough money was paid and that the snack is in stock, and works out the change. Storage is the machine's record of its stock and of the money collected (many machines keep these). Output is the snack, the change, and a message on the display.
Level B: Application
B1. A food-delivery app lets you order a meal. Describe the order through the four steps. Give at least two inputs, two processing actions, what is stored, and two outputs.
Show solution B1
B1. Example answer.
- Inputs: the restaurant and dishes you tap, your delivery address, your payment choice.
- Processing: work out the total including the delivery fee, check that the restaurant is open, find a courier.
- Storage: the order record and your order history.
- Outputs: a confirmation on your screen, and a message to the restaurant's system with the order. That message is the input of the restaurant's computers.
B2. A digital thermostat keeps a room at the temperature you choose. Identify its inputs, its processing, what it stores, and its outputs.
Show solution B2
B2. Inputs: the reading from the temperature sensor, and your button presses or dial for the target temperature. Processing: compare the reading with the target and decide whether the heating should be on or off. Storage: the target temperature (and a schedule, if there is one). Outputs: the signal that switches the heating on or off, and the display of the current and target temperatures.
B3. Each statement contains a mistake. Rewrite each one correctly.
- "The monitor is the computer."
- "Saving a file is output because the file leaves the program."
- "If a program shows nothing on the screen, it has no output."
Show solution B3
B3.
- The monitor is an output device. The computer is the whole system that takes input, processes, stores, and produces output.
- Saving a file is storage: its purpose is to keep the file for later. Output means delivering a result to a person or another system.
- A program can produce output without showing anything on the screen: it can write a file, play a sound, or send a message to another computer.
Level C: Challenge
C1. You send a text message from your phone to a friend. Describe the four steps on your phone and on your friend's phone. Show where your phone's output becomes your friend's input.
Show solution C1
C1. Your phone: input is the text you type and your tap on Send. Processing is the app preparing the message for sending. Storage is the message kept in your chat history. Output is the message sent over the network. Your friend's phone: input is the message arriving from the network, processing is the app unpacking it and deciding to notify your friend, storage is the message kept in their chat history, and output is the notification and the text on their screen. The link: what your phone sent out is what your friend's phone received as input. There is usually a server in between that also does the four steps with the message.
C2. A tip calculator should show 15% of a bill. A programmer wrote the instruction tip = bill * 15 and forgot to divide by 100. What does the app show for a bill of 40? What should it show? Why did the computer not "notice"? Which of the four steps contains the mistake?
Show solution C2
C2. The app shows 600, because 40 * 15 = 600. It should show 6, because 40 * 15 / 100 = 6. The computer did not notice because it cannot know what the programmer intended: it followed the instruction exactly. The mistake is in the processing step, in the instruction itself. The input (40) and the output (showing the number) both worked as designed.
Mini Challenge
Choose one device or app you use every day. Do not pick the calculator, ATM, camera, delivery app, messaging app, thermostat, or vending machine, which were used above. A fitness watch, a smart doorbell, an e-book reader, a music streaming app, or a traffic light with a sensor would all work.
Make a table with four rows: Input, Processing, Storage, Output. Write at least two entries for input and two for output. Then add two things:
- One place where the output of one step or one device becomes the input of another.
- One instruction that would give a wrong result if it were written inexactly, and what the wrong result would be.
Check your work: every row is filled in, you used the two questions to separate storage from output, and your example of an inexact instruction explains the wrong result in terms of what the computer was told, not what was meant.
Summary & Next Lesson
Key takeaways
- A computer is any machine that follows instructions to work on data. Every computer does four jobs: input, processing, storage, and output.
- Processing can read from and write to storage at any time, and the steps repeat constantly.
- Output delivers a result to a person or another system. Storage keeps data for later. Ask who receives it, and whether it will still be there later.
- A computer does exactly what its instructions say, not what you meant. A mistake in the instructions is called a bug.
- A backend is the same four steps running on a server, usually with another computer as the input and the output.
Next lesson
You now know what a computer does. The next lesson, "CPU, RAM, and storage: the kitchen analogy", looks at where it happens: the part that does the processing (the CPU), and the two kinds of storage a computer needs, and why it needs both.
Self-check
- Name the four steps.
- Is a touch screen an input device or an output device?
- A program saves a report so you can open it tomorrow. Which step is that?
- A calculator shows
15for5 + 3because its instruction multiplies. Which step contains the mistake, and why did the computer not notice? - In an online shop, what is the backend's input and what is its output?
Show answers
- Input, processing, storage, and output.
- Both: input when you tap, output when it shows an image.
- Storage: it keeps the report for later.
- The processing step contains the mistake. The computer did not notice because it follows its instructions exactly and cannot know what the programmer meant.
- The input is the request sent by the customer's app (for example, an order). The output is the response sent back (for example, a confirmation).
References
- Kansas State University, CC 110 textbook, Von Neumann Architecture. It describes the standard model of a computer with input devices, a processing unit, memory that holds both data and program instructions, and output devices. The four-step version used in this lesson is a teaching simplification of that model.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.