CS100 - Assignment 1 (Number systems)
The questions carry equal weight. Please show the computations
leading to the result. Show all your work for full credit!
- Convert the following unsigned binary numbers to a
decimal base: 011011, 001001
- Convert the following decimal numbers to a binary base: 33, 44
- Convert the following unsigned binary numbers to a hexadecimal base:
01101101, 0010010111
- Convert the following hexadecimal numbers to a binary base:
0xEA5D, 0x11A
- In the following perform addition of unsigned binary
numbers. Solve each problem and convert your result to a decimal base
for verification:
(a) 0101 (b)1101 (c)0111 (d)0111
+0001 +1110 +1000 +1010
---- ---- ---- ----
- In the following perform subtraction of unsigned binary
numbers. Solve each problem and convert your result to a decimal base
for verification:
(a) 0101 (b)1101 (c)0101 (d)0111
-0001 +0110 +0010 +0010
---- ---- ---- ----
Gady Agam
2007-08-28