CMSC 104, Section 0102
Spring 2000
Homework 2
Homework 2 will be collected Wednesday, February 23 at the beginning of class. Late homeworks will NOT be accepted. Make sure that you put your name and student id on your paper. If you have multiple sheets, staple them together.
Do each of the problems below. SHOW YOUR WORK FOR EVERY PROBLEM (NEATLY). If you do not show your work for a given problem, that problem will be marked as incorrect.
- Convert each of the following binary numbers to decimal.
a. 111010
b. 101101
c. 10111
d. 11011
- Convert each of the following decimal numbers to binary.
- Perform the following binary additions.
a. 11011 b. 1010001 c. 11111
+01111 +0111011 + 11
------ --------- ------
- Convert each of the following bit patterns to its hexadecimal equivalent.
a. 0110 1111 1011 0010
b. 1010 0000 0101 0001 0101 0111
c. 1110 1000
d. 1010 0010 0110
- Convert each of the following hexadecimal patterns to its equivalent bit pattern.
a. 8D37
b. BCDE
c. 0010
d. F91A
- Convert each of the following decimal numbers to hexadecimal.
- Convert each of the following hexadecimal numbers to decimal.