Jump to content

Kat Rollo

Members
  • Content Count

    25
  • Donations

    $0.00 
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Kat Rollo


  1. Hi CP Community,

     

    This is a rather different kind of request.

     

    I've been recently addicted to this show.

    http://warez.sx/index.php/topic/9512-the-blacklist-s02-720p-1080p-webdl-s02e01-e12/

    720p HDTVs are abundant, but unfortunately, 720p WEB-DLs are nowhere to be found. Torrents are dead. :(

     

    I was hoping if anyone would kindly let me borrow their account for 7 days? I don't really need a 30-day subscription and I'd be glad to give $3 (USD) as humble thanks. I promise your account will not be tampered with and will only be used to download.

    • Like 1

  2. Yes it is, but I understand now. :)

     

    2^5 = 32

    The signed decimal range is -16 to +15, which is 32 integers (including 0).

    Therefore, +16 is out of range.

     

    Also, positive values must always be represented with a leading 0. Negative values must be represented with a leading 1.

    However, the 5-bit limit prevents the addition of another bit.

    The (10000) base 2 is the two's-complement of -16 in decimal.

    • Like 1

  3. Instructions: Convert these decimal numbers to 5-bit 2's-complement form, if possible. If not possible, explain why this is so.

    (16) base 10

    According to the online converter:

    error.png

     

    I am only using the converter to check my answers. Our professor will not credit work without solution.

    From what I understand,

    If decimal is positive:
    STEP 1: Convert magnitude to binary.
    STEP 2: Pad 0's to desired bitsize.

    If decimal is negative:
    STEP 1: Convert magnitude to binary.
    STEP 2: Pad 0's to desired bitsize.
    STEP 3: Invert bits to achieve 1's-complement.
    STEP 4: Add 1 to achieve 2's-complement.

    Since 16 is positive, I simply converted it to binary by repeated division yielding (10000) base 2.
    I no longer padded 0's since it is already 5-bits (containing 5 digits).

    Can somebody explain to me why the online converter is returning an error (which also I strongly believe is the correct answer)?

    I would love to understand this concept. Thank you.

     


  4. C Programming Absolute Beginner's Guide, 3/E
    by Greg Perry and Dean Miller

    41N5uboxfdL._BO2,204,203,200_PIsitb-stic

    Format: .epub, .pdf

    Description
    Write powerful C programs…without becoming a technical expert! This book is the fastest way to get comfortable with C, one incredibly clear and easy step at a time. You’ll learn all the basics: how to organize programs, store and display data, work with variables, operators, I/O, pointers, arrays, functions, and much more. C programming has never been this simple!

    iTunes Store:

    https://itunes.apple.com/us/book/c-programming-absolute-beginners/id683209100?mt=11

    Amazon UK:
    http://www.amazon.co.uk/dp/0789751984/ref=rdr_ext_sb_ti_hist_1

    Hi guys, I would very much appreciate if anyone can get me this book in any of the aforementioned formats. Thank you very much!

     

×