Spring 2003 ENGR 212 Homework 1

This homework is due 27 January, 4:30 PM.

Problem 1

Convert the following numbers from decimal into binary and into hexadecimal numbers.

Problem 2

Add the following three pairs of unsigned binary numbers.

Problem 3

Add the following three pairs of 8-bit twos-complement binary numbers. Indicate if the addition results in an overflow.

Problem 4

Add the following three pairs of 16-bit twos complement binary numbers. Indicate if the addition results in an overflow

The numbers are expressed in hexadecimal notation.

Problem 5

Perform the following additions using BCD arithmetic. Assume each 8-bit quantity is a packed-BCD number -- that is, that there are two decimal digits in each byte. Show where the intermediate result was modified because of carry or value greater than 9 to produce the correct final result.

Problem 6

Create a five-bit gray code sequence of 32 values.