Practical on Binary Arithmetic and radix conversion 1007ICT

The aim of this practical exercise is to re-enforce the material related to the addition and subtraction of binary numbers, the representation of negative numbers, and the conversion from one representation to another.

The following is a randomly generated exercise and is different for each user.

NOTE: You can get feedback on your answers byhitting the 'TestYourAnswers' button. When you haveCom[pleted the lab, ask your lab tutor to record a mark.

  1. Perform binary addition on these binary numbers...

    1000111 + 100111 =>
    110010 + 111000 =>
    1000100 + 1100 =>

  2. Perform binary subtraction on these binary numbers. Assume 8 bit two's complement representation.

    11100100 - 111001 =>
    10100111 - 10000001 =>
    10011100 - 100101 =>

  3. Negate the binary numbers shown.
    Assume 8 bit two's complement representation...

    - 1011011 =>
    - 10100110 =>
    - 11110 =>

  4. Convert the following numbers between the given bases

    binary 1100111 : decimal
    hexadecimal E5 : octal
    binary 1101011 : octal


Program: ``binary_arith'' 23 Feb 1995
Authors: Anthony Thyssen & David Abramson
Last modified by Sven Venema 17 March 2008