A computer is a device that takes in data, processes it according to a set of rules, and produces a result. The word "compute" means to calculate — and calculation is at the heart of everything a machine does: launching a game, opening a browser, playing a video.
Every computer — whether a desktop PC, a laptop, or a smartphone — follows the same four-step cycle:
- Take in data — through a keyboard, mouse, microphone, or another input device.
- Store it in memory for processing.
- Process it according to a program's instructions.
- Output the result to a screen, speakers, or another output device.
Press a button in a game — the computer receives the signal, records it, calculates what should happen, and shows the result on screen. All of this happens in fractions of a second and repeats billions of times per minute.