倍可親

回復: 2
列印 上一主題 下一主題

求助

[複製鏈接]

0

主題

3

帖子

2

積分

註冊會員

新手上路(初級)

Rank: 1

積分
2
跳轉到指定樓層
樓主
gs182 發表於 2005-10-10 05:18 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
求助
誰能解答以下兩題,謝謝!
Question 5:
Given a computer that has a word size of 7 bits (binary digits), what are the smallest negative and largest positive numbers (in binary, then in decimal) that this computer can represent in one』s complement and in two』s complement?
        Smallest Negative Number        Largest Positive Number
One』s Complement       
Two』s Complement

Question 6:
If the floatingCpoint number storage on a certain system has a sign bit, a 3-bit exponent, and a 4-bit significand:
a.        What are the largest and the smallest positive numbers that can be stored on this system if the storage is normalized?  (Assume no bits are implied, there is no biasing, exponents use two』s complement notation, and exponents of all zeros and all ones are allowed.)
Largest Positive Number:        ______________________ (in decimal)
Smallest Non-Zero Positive Number: ______________________ (in decimal)
b.        What bias should be used in the exponent if we prefer all exponents to be non-negative?  Why would you choose this bias?
Bias:  _________________________________ (in decimal)
Reason:

20

主題

551

帖子

154

積分

貝殼網友一級

Rank: 3Rank: 3

積分
154
沙發
zzmxy 發表於 2005-10-10 23:31 | 只看該作者
哈哈…………很想幫你……不過,有些名詞看不懂!!!!!
比如說:

One』s Complement
Two』s Complement

嘻嘻~~~
回復 支持 反對

使用道具 舉報

6

主題

153

帖子

34

積分

貝殼新手上路

大一新生(四級)

Rank: 2

積分
34
3
brucelee 發表於 2005-10-11 04:12 | 只看該作者
Answer to Question 5:
7-bit binary can represent -64  to 63, if it is a signed number.

A positive number's complement is the same as itself. A negtive's complement is its reverse code +1.

As to Question 6, I am not good at floats and it needs a calculator after all.
F*ck the CCP! Fu*k the CCTV!
回復 支持 反對

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 註冊

本版積分規則

關於本站 | 隱私權政策 | 免責條款 | 版權聲明 | 聯絡我們

Copyright © 2001-2013 海外華人中文門戶:倍可親 (http://big5.backchina.com) All Rights Reserved.

程序系統基於 Discuz! X3.1 商業版 優化 Discuz! © 2001-2013 Comsenz Inc.

本站時間採用京港台時間 GMT+8, 2025-7-31 23:18

快速回復 返回頂部 返回列表