Docsity

CSCE 210: Computer Hardware Foundations - Homework 2 - Prof. C. Huang, Assignments of Computer Science

Toggle sidebar
bg1
CSCE 210: Computer Hardware Foundations Fall 2007
Homework 2 09/26/07
1. (1 point)
a. Write out the 6-digit 9’s and 10’s complements of the following decimal
number: 243410
b. Write out the 12-bit 1’s and 2’s complements of the following binary
number: 1011101011
2. (1 point) Given the positive number 2468, what is the largest positive number that you
can add that will not cause overflow in a four-digit decimal, 10’s complement number
system? Explain your answer.
3. (1 point)
a. Convert the number 135.79 1018 to the format SEEMMMM, with the
exponent stored in excess-45 notation. The implied decimal point is to the
right of the first mantissa digit. (Hint: Notice that the format is different
from what we saw in class. Round extra digit if needed.)
b. What is the smallest positive number you can represent using this format?
4. (1 point) The following decimal numbers are stored in the SEEMMMMM floating
point format, with the exponent stored in excess-50 notation and the decimal point
located at the beginning of the mantissa. Perform the following calculations and write out
your results in standard decimal notation.
a. 05247183 + 04933590
b. 05452500 54822000
5. (1 point)
a. Represent the decimal number 151.625 in IEEE 754 single-precision
floating point format.
b. Represent the decimal number -95764 in packed decimal format.
This homework accounts for 5 points toward your final grade. You need to submit a
hardcopy of your neatly typed answers for the problems. In order to get the points, you
need to explain your answer when you are asked to. This homework is due on Oct. 3 in
class.

Partial preview of the text

Download CSCE 210: Computer Hardware Foundations - Homework 2 - Prof. C. Huang and more Assignments Computer Science in PDF only on Docsity!

CSCE 210: Computer Hardware Foundations Fall 2007 Homework 2 09/26/

  1. (1 point) a. Write out the 6-digit 9’s and 10’s complements of the following decimal number: 243410 b. Write out the 12-bit 1’s and 2’s complements of the following binary number: 1011101011
  2. (1 point) Given the positive number 2468, what is the largest positive number that you can add that will not cause overflow in a four-digit decimal, 10’s complement number system? Explain your answer.
  3. (1 point) a. Convert the number 135.79  1018 to the format SEEMMMM, with the exponent stored in excess-45 notation. The implied decimal point is to the right of the first mantissa digit. ( Hint : Notice that the format is different from what we saw in class. Round extra digit if needed.) b. What is the smallest positive number you can represent using this format?
  4. (1 point) The following decimal numbers are stored in the SEEMMMMM floating point format, with the exponent stored in excess-50 notation and the decimal point located at the beginning of the mantissa. Perform the following calculations and write out your results in standard decimal notation. a. 05247183 + 04933590 b. 05452500  54822000
  5. (1 point) a. Represent the decimal number 151.625 in IEEE 754 single-precision floating point format. b. Represent the decimal number -95764 in packed decimal format. This homework accounts for 5 points toward your final grade. You need to submit a hardcopy of your neatly typed answers for the problems. In order to get the points, you need to explain your answer when you are asked to. This homework is due on Oct. 3 in class.