Why this matters
When you press a key, that letter has to travel into the machine, get processed, and show up on the screen. Knowing which part does which job lets you reason about why a computer behaves the way it does: why unsaved work disappears when the power cuts, or why a printer needs the right cable.
The idea
A computer is built from five major components, each with one job:
- Control unit: runs the computer's instructions and tells every other part what to do.
- Arithmetic unit: does the actual calculations.
- Memory (main memory): temporarily holds the programs and data in use.
- Input device: brings information in (keyboard, mouse, scanner).
- Output device: sends information out (display, printer).
The control unit and arithmetic unit together are the CPU. Storage splits into main memory, which holds work temporarily, and secondary memory (hard disk, SSD, USB), which keeps data for the long term.
Everything that isn't the computer itself but plugs into it is a peripheral device. The connection point between the main unit and a peripheral is an interface: USB (the most common, for keyboards, printers, external drives), HDMI (video and audio over one cable), and Ethernet (wired networks).
Picture it
flowchart LR
IN[Input device] --> MAIN[Main memory]
MAIN --> CU[Control unit]
CU --> AU[Arithmetic unit]
AU --> MAIN
MAIN --> OUT[Output device]
MAIN --> SEC[Secondary memory]
subgraph CPU
CU
AU
end
Worked example
A diagram shows the CPU at the top with two boxes inside it, and a box for storage below. Which is which? The box that commands every other part is the control unit; the other CPU box is the arithmetic unit. Data flowing in from outside starts at an input device; data leaving the machine ends at an output device. Of the two storage boxes, the one the input feeds directly is main memory, and the other is secondary memory.
Your turn
Try the practice: sort devices into input, output, and storage, and match each interface to the gear it connects.
Recap
- Five components: control unit, arithmetic unit, memory, input, output.
- CPU = control unit + arithmetic unit. Main memory is temporary; secondary memory lasts.
- Peripherals attach through an interface: USB, HDMI, or Ethernet.