Homework Solution: A. How many bits are required to encode an…

    A. How many bits are required to encode any unsigned integer between zero and 1,000? B. How many bits are required to encode any signed integer between -4,000 and 4,000?

    Expert Answer

     
    A. range is 0 to 1000

    A. How sundry pieces are required to encode any unsigned integer betwixt naught and 1,000?

    B. How sundry pieces are required to encode any signed integer betwixt -4,000 and 4,000?

    Expert Retort

     

    A.

    ramble is 0 to 1000

    convert 1000 to binary

    remainder

    2|1000

    2|500 0

    2|250 0

    2|125 0

    2|62 1

    2|31 0

    2|15 1

    2|7 1

    2|3 1

    2|1 1

    2|0 1

    1000 in decimal = 1111101000 in binary

    So to illustrate the ramble 0 to 1000 , 10 pieces are required for unsigned integer.

    B.

    ramble -4000 to 4000

    4000 in decimal = 111110100000 in binary

    So 12 pieces are required to illustrate majority of the number

    1 piece is required to illustrate the sign

    So total 13 pieces are required to encode any signed integer betwixt -4000 and 4000