CSCI 255 Homework 2

This assignment is due in class or to my office assistant in RH 215 by 1:45 pm on 2 September.

Problem 1

Convert the following 16-bit binary numbers into hexadecimal notation.

  1. 1010100010110011
  2. 0000010011000000

Problem 2

Convert the following hexadecimal numbers into binary numbers.

  1. BEEF
  2. 5678

Problem 3

For each character within the following string of, write the corresponding ASCII encoding as a two hex digits.

  1. R3a$b

Problem 4

Convert the following decimal numbers into 32-bit IEEE floating point representation:

  1. 0.125
  2. -125.0

Problem 5

Perform the following logical operations on the 16-bit numbers specificied in hexidecimal. Give your answer in hexidecimal

  1. AND(BEEF,8123)
  2. OR(BEEF,8123)
  3. NOT(369C)

Problem 6

Perform the following additions on the 12-bit twos complement numbers and specify which overflow.

  1. 100110011001 + 100110011001
  2. 100110011001 + 111110011001
  3. 001100110011 + 010000111111
  4. 010001000100 + 010000000000
  5. 011111111111 + 111111111111