DAY 1 and 2 Compiled
DAY 1 and 2 Compiled
Computer
What is computer
A computer is a programmable electronic
device that accepts raw data as input and
processes it with a set of instructions (a
program) to produce the result as output. It
renders output just after performing
mathematical and logical operations and can
save the output for future use. Input and
output data may contain numbers , words ,
videos , pictures and sounds .
A computer system consists of hardware and software. Software is the
information that is stored in the system. The hardware components are the
physical parts of computer .
Computer
CPU
(Central processing unit)
Input Output
device device
CU ALU
Memory (arithmetic logic unit)
(Control unit)
Keyboard Monitor
Primary Secondary
Mouse memory memory
Projector
• A piece of equipment/hardware
which helps us enter data into a
computer is called an input
device. For example : keyboard,
mouse, etc.
Output device
• A piece of equipment/hardware
which gives out the result of the
entered input is called an
output device. For example :
printer, monitor, etc.
CPU
RAM and ROM are the main two types of primary memory.
1. Primary Memory
0 0 0 0 10 A
1 1 1 1 11 B
2 2 2 12 C
3 3 3 13 D
4 4 4 14 E
5 5 5 15 F
6 6 6
7 7 7
8 8
9 9
Conversions
A . Decimal to binary Conversion
A . Decimal to binary Conversion
(15)10 = (?)2 (16)10 = (?)2
A . Decimal to binary Conversion
(47)10 = (?)2 (64)10 = (?)2
A . Decimal to binary Conversion
(100)10 = (?)2
A . Decimal to binary Conversion
A(2) . binary to Decimal Conversion
Formula : ……23 x N + 22 x N + 21 x N + 20 x N
A(2) . binary to Decimal Conversion
Formula : ……23 x N + 22 x N + 21 x N + 20 x N
A(2) . binary to Decimal Conversion
Formula : ……23 x N + 22 x N + 21 x N + 20 x N
(1 0 0 1 1 0 1 1)2 = (?)10
A(2) . binary to Decimal Conversion
Formula : ……23 x N + 22 x N + 21 x N + 20 x N