
Homework 2 โ Due as hard copy (printed!!) at start of class Wednesday 1/21 - 5 points
Collaboration policy:
Collaboration on this homework is strongly ENCOURAGED.
The homework is intended for practice, not assessment -- most people who turn in decent work
should get an A or B. Forming study groups is strongly encouraged. You shouldn't simply copy
answers from any source -- each other, the book, the web, other books, previous solutions, etc.
But you can certainly discuss how to solve the problems, look over each others solutions and help
"debug" them, compare answers and redo problems if you determine your answer is wrong, and
most importantly, explain concepts related to the problems and solutions.
1) Convert the following unsigned binary numbers to decimal:
Binary Decimal
1010101
1100011.1011
2) Convert the following decimal numbers to unsigned binary, using only as many bits as needed:
Decimal Binary
421
135
3) Write the 8-bit, 2's complement of the following binary numbers, and then give the decimal equivalent of the resulting
value:
Binary 2โs Complement Decimal
01110110
10000111
4) Perform the following arithmetic operations in binary using 8-bit 2's complement representation for negative
numbers. (Hint: do subtraction by adding the complement).
a. 27 โ 14 =
CS 061 - Computer Organization Winter 2004