Fall 2015 CSCI 255 Homework 1

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

Problem 2

Convert the following unsigned binary numbers into decimal numbers.

  1. 111111
  2. 100001
  3. 11000011

Problem 2

Convert the following decimal numbers into binary numbers.

  1. 21
  2. 255
  3. 2015

Problem 3

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

  1. 32
  2. -32
  3. 100
  4. -100
  5. 0
  6. -0

Problem 4

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

  1. 000010
  2. 001000
  3. 100000
  4. 101010
  5. 111111

Problem 5

For numbers stored in 14-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?