倍可親

標題: 求助 [列印本頁]

作者: 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:
作者: zzmxy    時間: 2005-10-10 23:31
哈哈…………很想幫你……不過,有些名詞看不懂!!!!!
比如說:

One』s Complement
Two』s Complement

嘻嘻~~~
作者: 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.




歡迎光臨 倍可親 (https://big5.backchina.com/) Powered by Discuz! X3.1