Question

4. What decimal value does the 8-bit binary number 10011110 have if:


4. What decimal value does the 8-bit binary number 10011110 have if:

 a) It is interpreted as an unsigned number? b) It is on a computer using signed-magnitude representation? c) It is on a computer using ones complement representation? d) It is on a computer using twos complement representation?


 5. Given the following two binary numbers: 11111100 and 01110000.

 a) Which of these two numbers is the larger unsigned binary number? b) Which of these two is the larger when it is being interpreted on a computer using signed- two's complement representation? c) Which of these two is the smaller when it is being interpreted on a computer using signed- magnitude representation?


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

 a) Signed magnitude b) One's complement c) Two's complement

0 0
Add a comment Improve this question Transcribed image text
Answer #1

4)
a)
Converting from unsigned binary to decimal
=> 10011110
=> 1x2^7+0x2^6+0x2^5+1x2^4+1x2^3+1x2^2+1x2^1+0x2^0
=> 1x128+0x64+0x32+1x16+1x8+1x4+1x2+0x1
=> 128+0+0+16+8+4+2+0
=> 158
Answer: 158

b)
Left most bit is 1. so, it's negative.
Now, let's convert rest of the bits 0011110 to decimal
=> 0011110
=> 0x2^6+0x2^5+1x2^4+1x2^3+1x2^2+1x2^1+0x2^0
=> 0x64+0x32+1x16+1x8+1x4+1x2+0x1
=> 0+0+16+8+4+2+0
=> 30
so, 10011110 from sign-magnitude to decimal is -30
Answer: -30

c)
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   10011110 is flipped to 01100001
II. Now convert this result to decimal value
=> 1100001
=> 1x2^6+1x2^5+0x2^4+0x2^3+0x2^2+0x2^1+1x2^0
=> 1x64+1x32+0x16+0x8+0x4+0x2+1x1
=> 64+32+0+0+0+0+1
=> 97
Answer: -97

d)
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   10011110 is flipped to 01100001
II. Add 1 to above result
01100001 + 1 = 01100010
III. Now convert this result to decimal value
=> 1100010
=> 1x2^6+1x2^5+0x2^4+0x2^3+0x2^2+1x2^1+0x2^0
=> 1x64+1x32+0x16+0x8+0x4+1x2+0x1
=> 64+32+0+0+0+2+0
=> 98
Answer: -98

Add a comment
Know the answer?
Add Answer to:
4. What decimal value does the 8-bit binary number 10011110 have if:
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What decimal value does the 8-bit binary number 10110111 have if: a) it is interpreted as...

    What decimal value does the 8-bit binary number 10110111 have if: a) it is interpreted as an unsigned number? b) it is on a computer using signed-magnitude representation? c) it is on a computer using one’s complement representation? d) it is on a computer using two’s complement representation? e) it is on a computer using excess-127 representation?

  • Using a "word" of 4 bits, list all of the possible signed binary numbers and their...

    Using a "word" of 4 bits, list all of the possible signed binary numbers and their decimal equivalents that are representable in: a) Signed magnitude b) One's complement c) Two's complement

  • Using the sigma (E) notation and given an n-bit sequence of binary digits an-lan-2an-3 ... a2alao,...

    Using the sigma (E) notation and given an n-bit sequence of binary digits an-lan-2an-3 ... a2alao, what is the value of A if the binary bits are interpreted as: A. an unsigned integer? b. Sign Magnitude number? C. Twos Complement number? D. Using the representation of twos complement numbers in question 6.c. above, convert the sign- magnitude number 1001 into twos complement number.

  • 2. Using the sigma (E) notation and given an n-bit sequence of binary digita An-12,-291-3 ......

    2. Using the sigma (E) notation and given an n-bit sequence of binary digita An-12,-291-3 ... 220,20. what is the value of A if the binary bits are interpreled as: a. an unsigned integer? b. Sign Magnitude number? Page 1 of 3 H. QUAYSON c. Twos Complement number? d. Using the representation of two complement numbers in question 6.c. above, convert the sign-magnitude mmber 1001 into twos complement number. (10 marks)

  • Given the 8 - bit binary number: 1001 10 1 1 What decimal number does this...

    Given the 8 - bit binary number: 1001 10 1 1 What decimal number does this represent if the computer uses: signed magnitude representation (a) signed 1's complement (b) (c) signed 2's complement Assuming 2's complement 8 - bit representation, consider the following: +70 010001 10 21 +80 010100000 10010110 Is this correct? Why or why not?

  • (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the...

    (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a.      What is the range of the expressible numbers?    b.      What is the precision?    c.       What is the error?    ______________________________________________________________________________   (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below   (Note: the space in the binary string is purely for visual convenience) Show your work. Using...

  • 2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers.

    2. Convert the following two's complement binary numbers to decimal numbers. These numbers are integers. a. 110101 b. 01101010 c. 10110101 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Write the results in 6-bit two's complement binary number format and decimal number format. Indicate whether or not the sum overflows a 6-bit result. a. 14 + 12 b. 30 + 2 C. -7 + 20 d. -18-17 4. What is the signed/magnitude and two's complement range of...

  • Given the 8-bit binary number: 1 0 0 1 1 1 1 1 What decimal number...

    Given the 8-bit binary number: 1 0 0 1 1 1 1 1 What decimal number does this represent if the computer uses: a. signed-magnitude representation b. signed-1's complement c. signed-2's complement

  • Please show and explain all work for each questions What decimal number does the bit pattern...

    Please show and explain all work for each questions What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 5 - [2 pts] What is the binary representation of the...

  • 1. What is the largest decimal number we can represent with a 16 bit two's complement...

    1. What is the largest decimal number we can represent with a 16 bit two's complement number? 2. Convert the following signed binary numbers to decimals. 11001         010011            1110100            1100111           3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Note if there is an overflow. 7 + 13 Two's complement/binary number for 7: Two's complement/binary number for 13: Sum: Overflow? 4. Convert the following decimal numbers to 6-bit two's complement binary numbers...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT