Homework Assignment 1
Due Sep. 3, 2010
- (a) List the octal and hexadecimal numbers from 16 to 32.
(b) Using A, B, C and D for the last four digits, list the numbers from 8
to 30 in base 14.
- What is the exact number of bytes of a system that contains (1) 16K
bytes, (b) 24 M bytes, (c) 12.5 G bytes?
- What is the largest binary number which can be expressed with 14 bits?
What are the equivalent decimal and hexadecimal numbers?
- Convert the hexadecimal number 5A9C to binary, and then convert it to
- Convert the decimal number 391 to binary in two ways: (a) Convert
directly to binary; (b) convert first to hexadecimal, then convert to binary.
- Express the following numbers in decimal:
- Convert the following binary numbers to hexadecimal and decimal: (a)
1.1101012, (b) 1110.1012. Explain why the decimal
answer in (b) is 8 times that of (a).
- Obtain the 1's and 2's complements of the following binary numbers:
- (a) Find the 16's complement of A7C516.
(b) Convert A7C516 to binary
(c) Find the 2's complment of the result in (b).
(d) Convert the answer in (c) to hexadecimal and compare it with the
answer in (a)
- Do the following additions, where the numbers are 8 bits long:
- 5F + 73
- A3 + 46
- A7 + 7A
- Do the following subtractions, where the numbers are 8 bits long:
- 5F - 73
- A3 - 46
- A7 - 7A