? asked in 電腦與網際網路程式設計 · 1 decade ago

請幫忙翻譯,計概的一些問題,英文在說什麼

# Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement and two's complement:

* a. 77 b. -42 c. 119 d. -107

# Using a "word" of 4 bits, list all of the possible signed binary numbers and their decimal equivalents that re representable in:

* a. Signed magnitude b. One's complement c. Two's complement

# Suppose a computer uses 4-bit one's complement numbers. What value will be stored in the variable j after the following pseudocode routine terminates?

* 0->j

* -3->k

* while k <> 0

* j = j+1

* k=k-1

* end while

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    # Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement and two's complement:

    # 以二進制8位元帶符號大小、1's補數及2's補數表示下列十進制數值。

    * a. 77 b. -42 c. 119 d. -107

    # Using a "word" of 4 bits, list all of the possible signed binary numbers and their decimal equivalents that representable in:

    # 使用一4位元"字組",以下列表示方式列出所有可能的具正負號二進制數值及其相等的十進制數值:

    * a. Signed magnitude b. One's complement c. Two's complement

    * a. 帶符號大小 b. 1's補數 c. 2's補數

    # Suppose a computer uses 4-bit one's complement numbers. What value will be stored in the variable j after the following pseudocode routine terminates?

    # 假定一電腦使用4位元1's補數數字。在下列虛擬碼程序終止後變數j將會儲存何值(變數j值為何)?

    * 0->j

    * -3->k

    * while k <> 0

    * j = j 1

    * k=k-1

    * end while

    Source(s): me & Yahoo字典
Still have questions? Get your answers by asking now.