Homework 2 // Due at Lecture Wed Feb 07
You may do this homework in a group of two students from the same 252 section and
turn in one solution at lecture with BOTH students names at the top.
First contact for questions is TA Marc de Kruijf at: dekruijf@cs.wisc.edu
Problem 1
Problem 2.3 on page 43 of ItCS, assuming 150 rather than 400 students.
Problem 2
Consider all 16 distinct 4-bit combinations. In a table, show what decimal number each
pattern corresponds to in unsigned, signed magnitude, and 2's complement.
Problem 3
What are the 8-bit patterns used to represent each of the characters
in the string "CS/ECE 252"?
(Only represent the characters between the quotation marks.)
Problem 4
Problem 2.8 on page 43 of ItCS.
Problem 5
Convert the following 2's complement binary numbers to decimal.
- 0110
- 1001
- 11100110
- 1000110011111000
Problem 6
Problem 2.19 on page 44 of ItCS, using the value -21 rather than -27.
Problem 7
Problem 2.20 on page 45 of ItCS, substituting the following operations for a-e.
- 0110 + 1001
- 0100 + 1100
- 0101 + 0011
- 1001 - 0010
- 1011 + 0101
Problem 8
Problem 2.21 on page 45 of ItCS.
|