HW1 Numeration System and Data Representation

advertisement
HW1 Numeration Systems and Data Representations
Directions: Use your own paper and show work as much as possible. If there is no answer
write it out and explain the reason.
Submission: Type your answer and email your file to Namchi Do (ndo@trinity.edu).
Convert the following numbers as specified. (2.5 point each question)
1. From binary to decimal
a. 11010
b. 100110
c. 1000011001
2. From binary to octal
a. 001
b. 1001
c. 1100101
3. From octal to binary
a. 53
b. 345
c. 1
4. From hexadecimal to decimal
a. 38
b. BAD
c. E23F
5. From decimal to binary
a. 48
b. 255
c. 1776
6. From decimal to hexadecimal
a. 36
b. 202
c. 308180
7. From hexadecimal to binary
a. 92
b. A3804
c. 6FD7E
8. From binary to hexadecimal
a. 11010
b. 1000110101
c. 101001101111001
Perform the addition operations using the specified numeration system. (2.5 point each
question)
9. Binary
a. 10110 + 1011
b. 100001 + 11100
c. 111101 + 100
10. Octal
a. 73 + 24
b. 125 + 346
c. 55+125
11. Hexadecimal
a. 429 + 718
b. 7C + B2
c. 1750 + 22A1
Integer data representation. (2.5 point each question)
12. Convert the following 16-bit 2’s complement binary integers to signed magnitude
decimal integers.
a. 0000000010010110
b. 1111111011110000
c. 0000000000000000
13. Convert the following signed magnitude decimal integers to 16-bit 2’s
complement binary integers.
a. 45
b. 294
c. -72
d. 40213
Download