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...

    101100 + 11000101 =>
    1101100 + 1101100 =>
    1011000 + 11010 =>

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

    10001001 - 1000011 =>
    10010110 - 100111 =>
    11000010 - 10000011 =>

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

    - 100001 =>
    - 111001 =>
    - 10001001 =>

  4. Convert the following numbers between the given bases

    hexadecimal E3 : decimal
    decimal 80 : hexadecimal
    binary 11100 : octal


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