Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-10-2004, 10:31 PM   #1
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
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
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 10:33 PM   #2
Arousal Design
Confirmed User
 
Join Date: Jun 2002
Location: Connecticut.
Posts: 1,358
1. 9124914
2. North Dakota
3. -2104^10 + McDonalds
4. 1010110G.W.Bush01011000

Hope that helps...
__________________

Make Major Bank With Major Personality - NaughtyBank! Featuring NaughtyAllie and NaughtyJulie!
Arousal Design is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 10:33 PM   #3
dotwind
Confirmed User
 
Join Date: Dec 2003
Location: Toronto
Posts: 285
homework? you better off learning how to do it than asking for an answer. it's not really that hard.
__________________
Custom large/complex systems programing.<br>ASP.Net, C#, XML, MS SQL, WebServices(SOAP).<br>ICQ: 235719545
dotwind is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 10:34 PM   #4
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
i am confused

just need answers to compare
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 10:34 PM   #5
hudson
Confirmed User
 
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
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!
hudson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 10:38 PM   #6
winter
Confirmed User
 
Industry Role:
Join Date: May 2001
Posts: 570
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.
winter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 10:38 PM   #7
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Quote:
Originally posted by Arousal Design
1. 9124914
2. North Dakota
3. -2104^10 + McDonalds
4. 1010110G.W.Bush01011000

Hope that helps...
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2004, 11:10 PM   #8
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 09:15 AM   #9
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
anyone else can help out?
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 09:33 AM   #10
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
50 buks paypal who does it lol
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 10:11 AM   #11
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 10:34 AM   #12
Cyborg69
So Fucking Banned
 
Join Date: Apr 2002
Location: Canada T.O.
Posts: 932
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 10:35 AM   #13
Cyborg69
So Fucking Banned
 
Join Date: Apr 2002
Location: Canada T.O.
Posts: 932
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
Cyborg69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 10:39 AM   #14
[Dan]
Confirmed User
 
Join Date: Oct 2001
Location: Somewhere in time
Posts: 143
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] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 10:41 AM   #15
[Dan]
Confirmed User
 
Join Date: Oct 2001
Location: Somewhere in time
Posts: 143
Ohh well Cyborg was faster than me.. Good job ;)
[Dan] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-11-2004, 10:47 AM   #16
spamofon
Confirmed User
 
Join Date: Jun 2003
Location: Toronto
Posts: 2,999
it is all clear to me now!
once again gfy saves the day!

spamofon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.