Homework 1
Homework 1
Hui Chen
1. Convert decimal 345 into binary using the Subtraction Method. Show all of the steps.
2. Convert decimal 524 into binary using the Division Method. Show all the steps.
3: Convert the following decimal numbers into 8-bit binary numbers using your preferred method.
255 11111111
126 1111110
15 1111
32 100000
147 10010011
11111111 255
00000000 0
00000001 1
10000000 128
10101010 170
210=1024-1=1023
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
00010000
00010001
2x2x2x2=16
2x2x2=8
Decimal Hexadecimal
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F
16 10
17 11
18 12
19 13
20 14
Hex Binary
E0 11100000
35 00110101
01 0001
10 00010000
AB 10101011
Binary Hex
1111 1110 FE
1000 0001 81
0000 1111 F
1010 1011 AB
1100 0111 C7
10. Perform the BITWISE AND of the following sets of binary numbers