2013F002/HW1

From CDS 130

Jump to: navigation, search

HW 1 Due on Monday February 3rd before class starts.

Name:_______________________________


Contents

  1. Binary to Decimal
  2. Decimal to Binary
  3. Base 4 Addition
  4. Encoding

1. Binary to Decimal

Convert the binary number 101101 to decimal. Show your work.

       45






2. Decimal to Binary

Convert the decimal number 179 to binary. Show your work.

      10110011






3. Base 4 Addition

    1 0 3
 +  3 1 2
    0 1 0
    _____
  1 0 3 1

  






4. Encoding

Write "CDS130" in binary using 7-bit ASCII binary encoding.

  
  C - 67 - 1000011
  D - 68 - 1000100
  S - 83 - 1010011
  1 - 49 - 0110001
  3 - 51 - 0110011
  0 - 48 - 0110000

  
Personal tools