![]() |
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 |
1. 9124914
2. North Dakota 3. -2104^10 + McDonalds 4. 1010110G.W.Bush01011000 Hope that helps... |
homework? :winkwink: you better off learning how to do it than asking for an answer. it's not really that hard.
|
i am confused
just need answers to compare |
Quote:
|
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.
|
Quote:
|
:(
|
anyone else can help out?
|
50 buks paypal who does it lol
|
:BangBang:
|
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 |
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 |
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 ;) |
Ohh well Cyborg was faster than me.. Good job ;)
|
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