Assignment – Number System (Handwritten Style)
Definition of Number System
A number system is a method of writing numbers using digits or symbols. It is used in computers to
store and process data.
Types of Number System
1. Decimal Number System (Base 10) – Uses digits 0–9. Used in daily life.
2. Binary Number System (Base 2) – Uses digits 0 and 1. Used in computers.
3. Octal Number System (Base 8) – Uses digits 0–7.
4. Hexadecimal Number System (Base 16) – Uses digits 0–9 and A–F.
Decimal to Binary (Ladder Method)
(98)10 to Binary
2 | 98 → 0
2 | 49 → 1
2 | 24 → 0
2 | 12 → 0
2 | 6 → 0
2 | 3 → 1
2 | 1 → 1
0
Answer = (1100010)2
(125)10 to Binary
2 | 125 → 1
2 | 62 → 0
2 | 31 → 1
2 | 15 → 1
2 | 7 → 1
2 | 3 → 1
2 | 1 → 1
0
Answer = (1111101)2
(28)10 to Binary
2 | 28 → 0
2 | 14 → 0
2 | 7 → 1
2 | 3 → 1
2 | 1 → 1
0
Answer = (11100)2
(44)10 to Binary
2 | 44 → 0
2 | 22 → 0
2 | 11 → 1
2 | 5 → 1
2 | 2 → 0
2 | 1 → 1
0
Answer = (101100)2
Binary to Decimal
(1100100)2
= 1×2^6 + 1×2^5 + 0×2^4 + 0×2^3 + 1×2^2 + 0×2^1 + 0×2^0
= 64 + 32 + 4
= 100
(10011)2
= 1×2^4 + 0×2^3 + 0×2^2 + 1×2^1 + 1×2^0
= 16 + 2 + 1
= 19
(10101)2
= 1×2^4 + 0×2^3 + 1×2^2 + 0×2^1 + 1×2^0
= 16 + 4 + 1
= 21
Hexadecimal to Decimal
(AC5D)16
A=10, C=12, D=13
= 10×16^3 + 12×16^2 + 5×16^1 + 13×16^0
= 40960 + 3072 + 80 + 13
= 44125
(56FD)16
F=15, D=13
= 5×16^3 + 6×16^2 + 15×16^1 + 13×16^0
= 20480 + 1536 + 240 + 13
= 22269
(524E)16
E=14
= 5×16^3 + 2×16^2 + 4×16^1 + 14×16^0
= 20480 + 512 + 64 + 14
= 21070
Decimal to Octal
(37)10
8 | 37 → 5
8 | 4 → 4
0
Answer = (45)8
(75)10
8 | 75 → 3
8 | 9 → 1
8 | 1 → 1
0
Answer = (113)8
(96)10
8 | 96 → 0
8 | 12 → 4
8 | 1 → 1
0
Answer = (140)8