A computer is an electronic device that accepts data, processes data, generates output, and stores data.
A computer mainly performs the following four functions:
Input
The computer accepts input data from the user via an input device like keyboard. The input data can be characters, word, text, sound, images, document, etc.
Process
The computer processes the input data. It performs arithmetic or logic calculation, editing, modifying a document, etc. During processing, the data, instructions, and the output are stored temporarily in the computer’s main memory.
Output
It is the result generated after the processing of data. The output may be in the form of text, sound, image, document, etc. The computer may display the output on a monitor and send the output to the printer for printing.
Storage
The input data, instructions, and output are stored permanently in the secondary storage devices like hard disk. The stored data can be retrieved, whenever needed.