CS100 - Assignment 2 (Data representation)
The questions carry equal weight. Please show the computations
leading to the result. Show all your work for full credit!
- Write the range of signed integers that can be represented using 6
bits (using two's complement representation).
- Find the two's complement representation of the following numbers
using 8 bits: 3, 5, 11
- In the following perform addition of signed binary
numbers. Solve each problem and convert your result to a decimal base
for verification:
(a) 1101 (b)1101 (c)0111 (d)0111
+0011 +0110 +1001 +1010
---- ---- ---- ----
- Write the following numbers in fixed point representation where 8
bits are allocated to whole part and 8 bits are allocated to the
fraction part: 7.25, 8.125, 6.375
- Write the following numbers in floating point representation where 10
bits are allocated to the mantissa and 6 bits are allocated to the
exponent: 1.27, 22.1, 2.21
Gady Agam
2007-09-10