CSCI 110, Spring 2011

    Home | | Course Schedule | | Assignments | | Lecture Notes

    Lab 8 solution

    Problem 1: Binary addition
    a) Convert 53 and 27 to eight bit binary form and to Hexadecimal:

    DecimalBinaryHexadecimal
    5300110101 35
    2700011011 1B

    53 = 00110101
    (Check: 1 + 4 + 16 + 32 = 53)

    27 = 00011011
    (Check: 1 + 2 + 8 + 16 = 27)

    b) Find the sum of 00111011 and 00011101:

    c) Find the decimal forms of each off the binary numbers and the sum in part b:

    00111011 = 59

    00011101 = 29

    01011000 = 88

    d) Write 89 and -37 in 2's complement representation. Show how to subtract 37 from 89:

    DecimalTwo's Complement
    8901011001
    -3711011011

    e) Largest possible positive integer with two's complement representation:

    Problem 2: Logic Expression and truth table for given circuit: