Question

1. (10 points) Assume 8-bit numbers and express -16 in both forms discussed in class.

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

A negative number can be represented in the following 2 forms :

1. Using two's complement

2. Using signed magnitude form

TWO'S COMPLEMENT :

So to represent -16 in two's complement form we follow the following steps

> First we represent 16 as 8-bit binary number : 00010000

> Next we find its one's complement : 11101111

> Then we add 1 to it (to find its two's complement) : 11110000

So, -16 represented using two's complement is 11110000

SIGNED MAGNITUDE :

So to represent -16 in the signed magnitude form we follow the following steps

> First we represent 16 as 8-bit binary number : 00010000

> Next we simply invert the leftmost zero. This will represent the negative sign. : 10010000

So, -16 represented using signed magnitude is 10010000

Add a comment
Know the answer?
Add Answer to:
1. (10 points) Assume 8-bit numbers and express -16 in both forms discussed in class.
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
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