Sei sulla pagina 1di 6

ELET 235

HOME WORK #1

Q#1:
(A)
(11011)2
= 1 × 24 + 1 × 23 + 0 × 22 + 1 × 21 + 1 × 20
= 16 + 8 + 2 + 1
= (27)10
(11011)2 = (𝟐𝟕)𝟏𝟎

(B)
(𝑭𝑨𝑩)𝟏𝟔
= 15 × 162 + 10 × 161 + 11 × 160
= 3840 + 160 + 11
= (4011)10
(𝑭𝑨𝑩)𝟏𝟔 = (𝟒𝟎𝟏𝟏)𝟏𝟎

(C)
(𝟕𝟎𝟏)𝟖
= 7 × 82 + 0 × 81 + 1 × 80
= 448 + 0 + 1
= (449)10
(𝟕𝟎𝟏)𝟖 = (𝟒𝟒𝟗)𝟏𝟎

(D)
(𝟏𝟏𝟎𝟗𝟏)𝟏𝟎
By dividing the decimal number by 2.
Divisor Dividend Remainder
2 11091
2 5545 1
2 2772 1
2 1386 0
2 693 0
2 346 1
2 173 0
2 86 1
2 43 0
2 21 1
2 10 1
2 5 0
2 2 1
2 1 0

So,
(𝟏𝟏𝟎𝟗𝟏)𝟏𝟎 = (𝟏𝟎𝟏𝟎𝟏𝟏𝟎𝟏𝟎𝟏𝟎𝟎𝟏𝟏)𝟐

(E)
(𝟔𝟔𝟕𝟖)𝟏𝟎

By dividing the decimal number by 8.


Divisor Dividend Remainder
8 6678
8 834 6
8 104 2
8 13 0
8 1 5

So,
(𝟔𝟔𝟕𝟖)𝟏𝟎 = (𝟏𝟓𝟎𝟐𝟔)𝟖

(F)
(𝟓𝟗𝟗𝟗)𝟏𝟎

By dividing the decimal number by 16.


Divisor Dividend Remainder
16 5999
16 374 F
16 23 6
16 1 7

So,
(𝟓𝟗𝟗𝟗)𝟏𝟎 = (𝟏𝟕𝟔𝑭)𝟏𝟔
Q#2:
1-1 (h)
10110101
Converting the binary number into decimal,
= 1 × 27 + 0 × 26 + 1 × 25 + 1 × 24 + 0 × 23 + 1 × 22 + 0 × 21 + 1 × 20
= 128 + 0 + 32 + 16 + 0 + 4 + 0 + 1
= 181
(10110101)2 = (𝟏𝟖𝟏)𝟏𝟎

1-2 (e)
(𝟏𝟒𝟔)𝟏𝟎
Converting into 8-bit binary number,
By dividing the decimal number by 2.
Divisor Dividend Remainder
2 146
2 73 0
2 36 1
2 18 0
2 9 0
2 4 1
2 2 0
2 1 0

So,
(𝟏𝟒𝟔)𝟏𝟎 = (𝟏𝟎𝟎𝟏𝟎𝟎𝟏𝟎)𝟐

1-3 (e)
1101101
Converting the binary number into octal, pairing the 3 bits
1 101 101
Adding two bits (zeros) to complete the 3rd pair,
001 101 101
↓ ↓ ↓
1 5 5
(𝟏𝟏𝟎𝟏𝟏𝟎𝟏)𝟐 = (𝟏𝟓𝟓)𝟖
1-4 (e)
(𝟓𝟕)𝟖
Converting the octal number into binary by direct conversion
78 = 1112
58 = 1012

(𝟓𝟕)𝟖 = (𝟏𝟎𝟏𝟏𝟏𝟏)𝟐

1-5 (e)
(𝟓𝟏)𝟖
Converting the octal number into decimal
= 5 × 81 + 1 × 80
= 40 + 1
= (41)10
(𝟓𝟏)𝟖 = (𝟒𝟏)𝟏𝟎

1-6 (e)
(𝟏𝟎𝟖)𝟏𝟎
Converting the decimal number into Octal,
By dividing the decimal number by 8.
Divisor Dividend Remainder
8 108
8 13 4
8 1 5

So,
(𝟏𝟎𝟖)𝟏𝟎 = (𝟏𝟓𝟒)𝟖

1-7 (e)
11000110
Converting the binary number into Hexadecimal, forming the pairs of 4 bits,
1100 0110
↓ ↓
C 6
So,
(𝟏𝟏𝟎𝟎𝟎𝟏𝟏𝟎)𝟐 = (𝑪𝟔)𝟏𝟔
1-8 (e)
(𝟔𝟐)𝟏𝟔
Converting the Hexadecimal number into binary number, by direct conversion
(2)16 = (0010)2
(6)16 = (0110)2
So,

(𝟔𝟐)𝟏𝟔 = (𝟎𝟏𝟏𝟎𝟎𝟎𝟏𝟎)𝟐

1-9 (e)
(𝟑𝑪𝟓)𝟏𝟔
= 3 × 162 + 12 × 161 + 5 × 160
= 768 + 192 + 5
= (965)10
(𝟑𝑪𝟓)𝟏𝟔 = (𝟗𝟔𝟓)𝟏𝟎

1-10 (e)
(𝟐𝟗)𝟏𝟎
Converting the decimal number into hexadecimal
By dividing the decimal number by 16.
Divisor Dividend Remainder
16 29
16 1 D

So,
(𝟐𝟗)𝟏𝟎 = (𝟏𝑫)𝟏𝟔

1-11 (e)
(𝟏𝟎𝟎𝟎 𝟎𝟎𝟎𝟏)𝑩𝑪𝑫
Converting the BCD number into decimal
(0001)𝐵𝐶𝐷 = (1)10
(1000)𝐵𝐶𝐷 = (8)10
So,

(𝟏𝟎𝟎𝟎 𝟎𝟎𝟎𝟏)𝑩𝑪𝑫 = (𝟖𝟏)𝟏𝟎


1-12 (e)
(𝟒𝟒)𝟏𝟎
Converting the decimal number into BCD
(4)10 = (0100)𝐵𝐶𝐷
So,

(𝟒𝟒)𝟏𝟎 = (𝟎𝟏𝟎𝟎𝟎𝟏𝟎𝟎)𝑩𝑪𝑫

1-13
Decimal Binary Octal BCD Hexadecimal
Sample 16 0001 0000 020 0001 0110 10
(a) 35 0010 0011 43 0011 0101 23
(b) 41 0010 1001 51 0100 0001 29
(c) 43 0010 1011 53 0100 0011 2B
(d) 78 0100 1110 116 0111 1000 4E
(e) 58 0011 1010 72 0101 1000 3A

1-14
Decimal Binary Octal BCD Hexadecimal
Sample 59 0011 1011 073 0101 1001 3B
(a) 68 0100 0100 104 0110 1000 44
(b) 98 0100 0100 142 1001 1000 62
(c) 87 0101 0111 127 1000 0111 57
(d) 52 0011 0100 64 0101 0010 34
(e) 45 0010 1101 55 0100 0101 2D

1-15 (e)
Pg
Converting into ASCII Code,
𝑃 = (80)𝐴𝑆𝐶𝐼𝐼
𝑔 = (103)𝐴𝑆𝐶𝐼𝐼

So,
𝑷𝒈 = (𝟖𝟎 𝟏𝟎𝟑)𝑨𝑺𝑪𝑰𝑰

Potrebbero piacerti anche