Docsity

CMSC 101 Assignment 1: Converting Binary and Hexadecimal Numbers - Prof. James Ames, Assignments of Computer Science

Toggle sidebar
bg1
CMSC 101 Assignment 1 due Thursday, Jan 29
Spring 2009 11:00 AM
Numbers and Arithmetic
1. Convert each binary value to hexadecimal.
a. 0000000000000101
b. 0000000000110000
c. 0000101111011111
d. 0111011101011011
2. Give the decimal value for each number in problem 1.
3. What is the decimal value of each of the following hexadecimal values?
a. 2D
b. 47
4. Each of the following is a two's complement, hexadecimal representation of a 16 bit integer.
Determine the decimal value of each number.
a. 15A3
b. 9EC7
c. FF6C
d. 5555
5. Give the hexadecimal representation of the negative of each value in problem 4.

Partial preview of the text

Download CMSC 101 Assignment 1: Converting Binary and Hexadecimal Numbers - Prof. James Ames and more Assignments Computer Science in PDF only on Docsity!

CMSC 101 Assignment 1 due Thursday, Jan 29

Spring 2009 11:00 AM Numbers and Arithmetic

  1. Convert each binary value to hexadecimal. a. 0000000000000101 b. 0000000000110000 c. 0000101111011111 d. 0111011101011011
  2. Give the decimal value for each number in problem 1.
  3. What is the decimal value of each of the following hexadecimal values? a. 2D b. 47
  4. Each of the following is a two's complement, hexadecimal representation of a 16 bit integer. Determine the decimal value of each number. a. 15A b. 9EC c. FF6C d. 5555
  5. Give the hexadecimal representation of the negative of each value in problem 4.