hw4_solution_cs231_sp08_uiuc.html -

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CS231 Spring 2008 Homework 4</title> <link rel="stylesheet" type="text/css" href="/~cs231/style.css" /> <style type="text/css"> ol li { margin-top: 1em </style> </head> <body> <?xml version="1.0" encoding="us-ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <h2 align="center"> CS231 Spring 2008<br> Homework 4 </h2> <h3 align="center"> Due at 5:00pm, Monday, February 25, 2008<br> in 0212 Siebel Center (in basement) </h3> <hr> <ol> <!-- ========== Problem 1 ========== --> Perform the computations below to produce 8-bit results.<br> Indicate whether each operation overflows. Convert the operands and results to decimal to check your answers. <ol type=a> <li> <p> 11000111 + 01100111 </p> <b>Solution:</b><br><br> <p>The sum of a positive and negative number must necessarily be closer to zero than either operand, so there is no overflow.</p> <li> <p> 01101101 + 01010111 </p> <b>Solution:</b><br><br> <p> The sum of two positive numbers yields a negative number, so there is
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 overflow.</p> <li> <p> 11001001 - 11001101 </p> <b>Solution:</b><br><br> <p> The subtraction of one negative number from another is converted to the sum of a negative and positive number, so there is no overflow.</p> </ol> <hr> <!-- ========== Problem 2 ========== --> <li> (24pts)Fill in the tables with the largest and smallest values that can be expressed in each representation with
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/10/2008 for the course CS 231 taught by Professor - during the Spring '08 term at University of Illinois at Urbana–Champaign.

Page1 / 20

hw4_solution_cs231_sp08_uiuc.html -

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online