# 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.

- 1010100010110011
- 0000010011000000

## Problem 2

Convert the following hexadecimal numbers into binary numbers.

- BEEF
- 5678

## Problem 3

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

- R3a$b

## Problem 4

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

- 0.125
- -125.0

## Problem 5

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

- AND(BEEF,8123)
- OR(BEEF,8123)
- NOT(369C)

## Problem 6

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

- 100110011001 + 100110011001
- 100110011001 + 111110011001
- 001100110011 + 010000111111
- 010001000100 + 010000000000
- 011111111111 + 111111111111