Assignment 2 Solutions

Part of the homework for 22C:60 (CS:2630), Spring 2012
by Douglas W. Jones
THE UNIVERSITY OF IOWA Department of Computer Science

  1. Background: Consider the hexadecimal numbers EE9CA0 and 053977.

    a) Convert each of these numbers to a 24-bit binary number. (0.5 points)

    EE9CA0 = 111011101001110010100000
    053977 = 000001010011100101110111

    b) Convert each of these numbers to an 8-digit octal number. (0.5 points)

    EE9CA0 = 73516240
    053977 = 01234567

  2. Background: Consider the following 2 10-bit binary numbers: 1110110101 0011011000

    a) Give the one's complement of each of these numbers. (0.2 points)

    1110110101 = 0001001010
    0011011000 = 1100100111

    b) Give the two's complement of each of these numbers. (0.2 points)

    1110110101 = 0001001011
    0011011000 = 1100101000

    c) Assuming that each of these numbers is an unsigned binary number, give the decimal equivalent. (0.2 points)

    1110110101 = 949
    0011011000 = 216

    d) Assuming that each of these numbers is in the one's complement number system, give the signed decimal equivalent. (0.2 points)

    1110110101 = -74
    0011011000 = 216

    e) Assuming that each of these numbers is in the two's complement number system, give the signed decimal equivalent. (0.2 points)

    1110110101 = -75
    0011011000 = 216

  3. Background: Consider this sequence of hexadecimal values:
      48 65 6C 6C 6F 20 57 6F 72 6C 64
    

    A Problem What sequence of ASCII characters does this represent? (1 point)

    "Hello World" (excluding the quotes)