Every computer, from a mainframe to a phone, does the same four things:
· Input — capturing and gathering data from the outside world, whether that is keystrokes, a mouse click, a camera or a sensor.
· Processing — converting and transforming that data into something useful, which is the work the processor actually does.
· Storage — holding data within the system, either temporarily in memory or permanently on a drive.
· Output — presenting the result in a form people can perceive, or passing it on as input to another system.
The neat way to remember it is that data goes in, gets worked on, is kept somewhere, and comes back out. Everything else a computer does is a variation on that loop.