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 divers morsels are required to encode any unsigned integer among naught and 1,000?

    B. How divers morsels are required to encode any signed integer among -4,000 and 4,000?

    Expert Apology

     

    A.

    order 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 portray the order 0 to 1000 , 10 morsels are required ce unattested integer.

    B.

    order -4000 to 4000

    4000 in decimal = 111110100000 in binary

    So 12 morsels are required to portray magnitude of the number

    1 morsel is required to portray the sign

    So total 13 morsels are required to encode any attested integer among -4000 and 4000