Computer Sciences Dept.

CS/ECE 252 Introduction to Computer Engineering

Spring 2007 Sections 1 and 2
Instructor Mark D. Hill and TAs Marc de Kruijf & Sanghamitra Roy
URL: http://www.cs.wisc.edu/~markhill/cs252/Spring2007/

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.

  1. 0110
  2. 1001
  3. 11100110
  4. 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.

  1. 0110 + 1001
  2. 0100 + 1100
  3. 0101 + 0011
  4. 1001 - 0010
  5. 1011 + 0101

Problem 8

Problem 2.21 on page 45 of ItCS.

 
Computer Sciences | UW Home