Fall 2016 CSCI 255 Homework 1

This assignment is due in class on 30 August or may be uploaded to Homework 1 on moodle before class starts.

Problem 1

Convert the following unsigned binary numbers into decimal numbers.

  1. 110011
  2. 010101
  3. 10001011

Problem 2

Convert the following decimal numbers into binary numbers.

  1. 23
  2. 255
  3. 2016

Problem 3

Convert the following signed decimal numbers into 8-bit twos-complement representation.

  1. 43
  2. -43
  3. 64
  4. -64
  5. 0
  6. -0

Problem 4

Convert the following 6-bit twos-complement numbers into signed decimal numbers.

  1. 000110
  2. 001001
  3. 100100
  4. 111000
  5. 111111

Problem 5

For numbers stored in 12-bit words,

  1. what is the smallest unsigned number that can be stored?
  2. what is the largest unsigned number that can be stored?
  3. what is the smallest twos-complement number that can be stored?
  4. what is the largest twos-complement number that can be stored?