⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 http:^^www.cs.wisc.edu^~cs354-2^cs354^homeworks^a3hw.html

📁 This data set contains WWW-pages collected from computer science departments of various universities
💻 HTML
字号:
Date: Tue, 05 Nov 1996 00:32:02 GMTServer: NCSA/1.5Content-type: text/htmlLast-modified: Wed, 02 Oct 1996 18:58:12 GMTContent-length: 3028<!--This file created 9/30/96 3:30 PM by Claris Home Page version 1.0b1--><HTML><HEAD>   <TITLE>JT-HW3.html</TITLE>   <X-SAS-WINDOW TOP=-9 BOTTOM=473 LEFT=-762 RIGHT=-154></HEAD><BODY><H1 ALIGN=CENTER><FONT SIZE=5>CS354, Fall 1996</FONT></H1><H1 ALIGN=CENTER><FONT SIZE=5>Homework 3, due Wed Oct 9 at the startof class.</FONT></H1><H3><TABLE BORDER=1 CELLPADDING=1 WIDTH="100%" HEIGHT=35>   <TR>      <TD>         <P><B><FONT SIZE=4 COLOR="#AF0000">Name         (printed):</FONT></B>      </TD><TD>         <P><B><FONT SIZE=4 COLOR="#AF0000">Name (signed):</FONT></B>            </TD></TR></TABLE></H3><H3>Grader:</H3><P><TABLE BORDER=1 CELLPADDING=1 WIDTH="24%">   <TR>      <TD>         <P>Mohammad      </TD><TD>         <P>&nbsp;      </TD></TR>   <TR>      <TD>         <P>Sridevi      </TD><TD>         <P>&nbsp;      </TD></TR>   <TR>      <TD>         <P>Sunlung      </TD><TD>         <P>&nbsp;      </TD></TR></TABLE></P><H3>Total score:</H3><P><FONT COLOR="#000000">(1) (4 points) Find the largest IEEE 32 bitfloating point number that does not have an integer value. Expressthe answer in binary and in decimal.</FONT></P><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">(2) (2 points each, 6 points total) Writethe hexadecimal values for x, y and z just after the following codeexecutes:</FONT></P><BLOCKQUOTE><PRE><FONT COLOR="#000000">move x, 0x0f0fc123and  x, x, 0xff00f000      # x = ?not  x, x                  # x = ?move y, 0x8f0aabc9sll  y, y, 5               # y = ?nor  z, x, y               # z = ?</FONT></PRE></BLOCKQUOTE><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">&nbsp;</FONT></P><P><FONT COLOR="#000000">(3) (3 points each, 6 points total) Do thefollowing 2's complement multiplication. Indicate if eithercomputation overflows for 12 bit words, for 6 bit words. Show yourwork. Check your results by redoing the computation indecimal.</FONT></P><BLOCKQUOTE><BLOCKQUOTE><BLOCKQUOTE><PRE><FONT COLOR="#000000">    001010                                   001010x 111100                                 x 000011--------                                 --------</FONT></PRE></BLOCKQUOTE></BLOCKQUOTE><PRE><FONT COLOR="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></PRE></BLOCKQUOTE><P><FONT COLOR="#000000">(4) (4 points) Show that the following twocode segments give the same value for c, for any values of a and b.Hint: consider truth tables (see page 116 of the text).</FONT></P><BLOCKQUOTE><PRE><FONT COLOR="#000000">     and c, a, b                                 not c, a     not c                                       not d, b                                                 or  c, c, d</FONT></PRE></BLOCKQUOTE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -