Input
All the data received by the computer goes through the input unit. The
input unit comprises different devices like a mouse, keyboard, scanner,
etc. In other words, each of these devices acts as a mediator between the
users and the computer.
The data that is to be processed is put through the input unit. The
computer accepts the raw data in binary form. It then processes the data
and produces the desired output.
CPU – Central Processing Unit
Central Processing Unit or the CPU, is the brain of the
computer. It works the same way a human brain works. As the
brain controls all human activities, similarly the CPU controls
all the tasks.
Moreover, the CPU conducts all the arithmetical and logical
operations in the computer.
CPU comprises of two units, namely – ALU (Arithmetic Logic
Unit) and CU (Control Unit). Both of these units work in sync.
The CPU processes the data as a whole.
ALU – Arithmetic Logic Unit
The Arithmetic Logic Unit is made of two terms, arithmetic and logic. There are two
primary functions that this unit performs.
➢ Data is inserted through the input unit into the primary memory. Performs the basic
arithmetical operation on it. Like addition, subtraction, multiplication, and division.
It performs all sorts of calculations required on the data. Then sends back data to
the storage.
➢ The unit is also responsible for performing logical operations like AND, OR, Equal
to, Less than, etc. In addition to this it conducts merging, sorting, and selection of
the given data.