CS 301

HW #1

Due Friday, September 13 by 5:00 pm

 

  1. Convert the following decimal numbers to binary: a) 13, b) 25, c) 63, d) 256.
  2. Perform the following binary addition problems:

01001011

+10001011

11100101

+10000111

00110011

+00110011

10000001

+01111111

 

 

  1. Convert each of the binary numbers (and their sums) in question 2 to decimal values and check that the sums are valid.
  2. Give the two’s complement of the following binary numbers: a) 01001011, b) 00000000, c) 00110011, d) 00000001
  3. Convert the following negative binary numbers to their positive counterparts: a) 11001100, b) 10110111, c) 10101010, d) 11111111
  4. Perform the following hexadecimal addition problems:

13B4

+0033

C53D
+0004

8798

+0777

DCBE

+35B5

FDAC

+0BAF

 

  1. Convert the following decimal numbers to hexadecimal: a) 23, b) 37, c) 75, d) 255, e) 256, f) 56217