Open up the case of any computer, from a phone to a laptop, and there is nothing magical inside: just a circuit board of connected electronic components. What makes that circuit board useful is not the hardware by itself, but a pattern every computer follows to turn raw electricity into something you can actually use.
Computer scientists describe what a computer does in three stages, with a fourth for whatever it needs to keep for later.
In this course, input almost always means typing on a keyboard, and output almost always means text appearing on a screen, but the same four stages describe every computer, from a games console to a washing machine.
Each stage in the diagram above is handled by a specific piece of hardware inside the case.
A keyboard sends every key press into the computer.
The CPU carries out instructions, using RAM to hold data it is currently working with.
A monitor displays the results on screen.
A hard disk keeps data even when the computer is switched off.
Exchanges data with Process.
Every one of those parts is fixed: the keyboard cannot decide by itself what counts as a valid key press, and the CPU cannot decide by itself what instructions to carry out. Something else has to describe, precisely and in order, what the “process” step should actually do. That description is an algorithm, and it is the subject of the next reading activity.