1. Change the following decimal numbers to 16-bit two’s complement integers a. -1024 b. 16384 2. Change the following 8-bit unsigned numbers to decimal a. 11010101 b. 00101110 3. If we apply the two’s complement operation to a number twice, we should get the original number. Apply the two’s complement operation to each of the following numbers and see if we can get the original number. a. 110011 b. 11111111 4. Normalize the following binary floating-point numbers. Explicitly show the value of the exponent after normalization. a. 0.1011.1 * 26 b. 1101.11 * 2-2 5. Convert the following numbers in 32-bit IEEE format. a. 16.25 b. -12.75 6. Convert the following decimal integers to sign-and-magnitude with 8-bit allocation a. 45 b. -78 7. One method of representing signed numbers in a computer is one’s complement representation. In this representation, to represent a positive number, we store the binary number. To represent a negative number, we apply the one’s comple- ment operation on the number. Store the following decimal integers to one’s complement with 8-bit allocation. a. 63 b. -63
CCTT211 Assignment:
1. Change the following decimal numbers to 16-bit two’s complement integers
a. -1024
b. 16384
2. Change the following 8-bit unsigned numbers to decimal
a. 11010101
b. 00101110
3. If we apply the two’s complement operation to a number twice, we should get the original number. Apply the two’s complement operation to each of the following numbers and see if we can get the original number.
a. 110011
b. 11111111
4. Normalize the following binary floating-point numbers. Explicitly show the value of the exponent after normalization.
a. 0.1011.1 * 26
b. 1101.11 * 2-2
5. Convert the following numbers in 32-bit IEEE format.
a. 16.25
b. -12.75
6. Convert the following decimal integers to sign-and-magnitude with 8-bit allocation
a. 45
b. -78
7. One method of representing signed numbers in a computer is one’s complement representation. In this representation, to represent a positive number, we store the binary number. To represent a negative number, we apply the one’s comple- ment operation on the number. Store the following decimal integers to one’s complement with 8-bit allocation.
a. 63
b. -63
Step by step
Solved in 3 steps