CS130 Homework 1
Binary Numbers
For full credit, show your work!
1. Convert 34 to an 8-bit binary number.
2. Convert -68 to an 8-bit binary number (2s complement)
3. Convert the following numbers from their 2s complement binary
representation to decimal:
00010110
10000101
4. Add the binary numbers:
10110011 10011001
00111010
10001101
5. In problem 4, is there an underflow or overflow situation? How
do you know?