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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spamofon
    Confirmed User
    • Jun 2003
    • 2999

    #1

    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
    Confirmed User
    • Jun 2002
    • 1358

    #2
    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!

    Comment

    • dotwind
      Confirmed User
      • Dec 2003
      • 285

      #3
      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

      Comment

      • spamofon
        Confirmed User
        • Jun 2003
        • 2999

        #4
        i am confused

        just need answers to compare

        Comment

        • hudson
          Confirmed User
          • Jul 2003
          • 2948

          #5
          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!

          Comment

          • winter
            Confirmed User
            • May 2001
            • 570

            #6
            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.

            Comment

            • tranza
              ICQ: 197-556-237
              • Jun 2003
              • 57559

              #7
              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.

              Comment

              • spamofon
                Confirmed User
                • Jun 2003
                • 2999

                #8

                Comment

                • spamofon
                  Confirmed User
                  • Jun 2003
                  • 2999

                  #9
                  anyone else can help out?

                  Comment

                  • spamofon
                    Confirmed User
                    • Jun 2003
                    • 2999

                    #10
                    50 buks paypal who does it lol

                    Comment

                    • spamofon
                      Confirmed User
                      • Jun 2003
                      • 2999

                      #11

                      Comment

                      • Cyborg69
                        So Fucking Banned
                        • Apr 2002
                        • 932

                        #12
                        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

                        Comment

                        • Cyborg69
                          So Fucking Banned
                          • Apr 2002
                          • 932

                          #13
                          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

                          Comment

                          • [Dan]
                            Confirmed User
                            • Oct 2001
                            • 143

                            #14
                            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 ;)

                            Comment

                            • [Dan]
                              Confirmed User
                              • Oct 2001
                              • 143

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

                              Comment

                              • spamofon
                                Confirmed User
                                • Jun 2003
                                • 2999

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

                                Comment

                                Working...