GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone knows how to do this stupid problems with 2' compliment binary representation? (https://gfy.com/showthread.php?t=234382)

spamofon 02-10-2004 10:31 PM

Anyone knows how to do this stupid problems with 2' compliment binary representation?
 
:(

please help with any u can! thanks
questions:

1.[14] a) Find the 16-bit 2?s complement binary representation of the decimal number 1243.

b) Find the sign-and-magnitude binary representation of the decimal number -1243.


c) Find the 16-bit 2?s complement binary representation of the decimal number -1243.



2.[12] 100111100011001 represents a 16-bit 2?s complement binary number. What decimal number does it represent? (careful: count bits first)


3. [12]10011101 represents a 8-bit 2?s complement binary number. What decimal number does it represent?


4.[12] Add the following two 12-bit 2?s complement binary numbers. Give the answer in decimal.
011001101111
111010111011

Arousal Design 02-10-2004 10:33 PM

1. 9124914
2. North Dakota
3. -2104^10 + McDonalds
4. 1010110G.W.Bush01011000

Hope that helps...

dotwind 02-10-2004 10:33 PM

homework? :winkwink: you better off learning how to do it than asking for an answer. it's not really that hard.

spamofon 02-10-2004 10:34 PM

i am confused

just need answers to compare

hudson 02-10-2004 10:34 PM

Quote:

Originally posted by Arousal Design
1. 9124914
2. North Dakota
3. -2104^10 + McDonalds
4. 1010110G.W.Bush01011000

Hope that helps...

now there you go! :thumbsup

winter 02-10-2004 10:38 PM

I learned that shit in cs354 here at uw-madison. its a bitch, but easy. read the book, and take notes in your lecture next time.

tranza 02-10-2004 10:38 PM

Quote:

Originally posted by Arousal Design
1. 9124914
2. North Dakota
3. -2104^10 + McDonalds
4. 1010110G.W.Bush01011000

Hope that helps...

:1orglaugh :1orglaugh

spamofon 02-10-2004 11:10 PM

:(

spamofon 02-11-2004 09:15 AM

anyone else can help out?

spamofon 02-11-2004 09:33 AM

50 buks paypal who does it lol

spamofon 02-11-2004 10:11 AM

:BangBang:

Cyborg69 02-11-2004 10:34 AM

a) Find the 16-bit 2haha146;s complement binary representation of the decimal number 432.


0000000110110000


b) Find the sign-and-magnitude binary representation of the decimal number -432.


1110110000


c) Find the 16-bit 2haha146;s complement binary representation of the decimal number -432.


0000000110110000

0000000110110000

flip

1111111001001111

+1

1111111001010000

Cyborg69 02-11-2004 10:35 AM

2.[10] 100110100001101 represents a 16-bit 2?s complement binary number. What decimal number does it represent? (careful: count bits first)

100110100001101 it is 15 bits, we need to add one 0 and it will be positive

0100110100001101

the answers is 19725

3. [10] 10001010 represents a 8-bit 2?s complement binary number. What decimal number does it represent?
10001010 is negative,
first flip and after that add 1
011110101
+1
011110110
it is positive
the answers is 246

4.[10] Add the following two 12-bit 2?s complement binary numbers. Give the answer in decimal.
011001100110
101011111011

the answer is 353

[Dan] 02-11-2004 10:39 AM

humm humm it's been a while.. As far as I can remember, a 2's complement binary number is found by reversing all the bits of the number, and then adding 1.

I.e.: You have 01000001 (33 in decimal)
You reverse all the bits = 10111110
Then add 1 = 10111111 (191 in decimal)

Don't take my word for it though. Just a little hint hopefully. I'm too lazy to find my books and search for the answer ;)

[Dan] 02-11-2004 10:41 AM

Ohh well Cyborg was faster than me.. Good job ;)

spamofon 02-11-2004 10:47 AM

it is all clear to me now!
once again gfy saves the day!

http://www.gofuckyourself.com/bbs2/b...rner-black.gif


All times are GMT -7. The time now is 10:01 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123