CSC 371 Assignment 2 - p.33-34/1-12, 1-14, 1-18, 1-22, 1-25

Due Friday, September 15, 2017

1-12.

Add and multiply the following number without converting them to decimal:

  1. Binary numbers 1011 and 101
  2. Hexadecimal numbers 2E and 34

1-14.

Obtain the 1's and 2's complements of the following binary numbers:

  1. 00010000
  2. 00000000
  3. 11011010
  4. 10101010
  5. 10000101
  6. 11111111

1-18.

Perform subtraction on the following unsigned binary numbers by using the 2's complement of the subtrahend. Where the result should be negative, 2's complement it and affix a minus sign.

  1. 10011 - 10010
  2. 100010 - 100110
  3. 1011 - 110101
  4. 101000 - 10101

1-22

Convert decimal 6,514 to both BCD and ASCII codes. For ASCII, an evenparity bit is to be appended at the left.

1-25

Represent decimal number 6,248 in:

  1. BCD
  2. Excess-3 code
  3. 2421 code
  4. a 6311 code

[Back to the Assignment Page]