Basic Elements of a Computer
Basically a computer system consists of 3 types of components. These are-
CPU comprises of 3 parts:
[a] Arithmetic and Logic Unit (ALU)
[b] Control Unit
[c] Memory
The above three components of the CPU along with the input and output devices form the five important components of any computer system.
Functional Block Diagram of a Typical Computer
There are several types of computer systems, but each can be broken down into the same functional units. Each unit performs specific functions.

Figure-1: Functional block diagram of a typical computer
Figure shows the functional block diagram of a digital computer. The solid lines with arrows represent the flow of information and the dashed lines with arrows represent the flow of timing and control signals.
Input Device: Common Functions of an input device are:
Example of Some Input Devices:
Keyboard, Mouse, Trackball, Trackpad, Joystick, Microphone, Web Camera, Punch Card, Scanner, Optical Mark Reader (OMR), Barcode Reader etc.
Output Device: Common Functions of an input device are:
Example of Some Output Devices:
Monitor, Printer, Plotter, Speaker, Multimedia Projector etc.
CPU: Common Functions of the CPU are:
Statlearner
Statlearner