CSCI 2370 Worksheet on Numbers

10/1/99
 

1. Convert 42710 to hexidecimal

2. Convert A6D16 to decimal

3. Convert 1101001110012 to hexidecimal

4. Convert F3C16 to binary

5 Convert 10111101012 to decimal

6. Convert 32610 to binary

7. Convert 2479 to base 5

8. Convert 2123 to base 7

9. Convert .136 to base 2

10. Convert .3124 to base 9 (round to four places)
 

11. Perform the following arithmetic with binary numbers:
 

  11001101
+ 00100110
  --------

  11001101
- 00100110
  --------

 1101
x 110
-----

110 divided into 11001101
 

12. Perform the following arithmetic with hexidecimal numbers:

  2BC
+ 1A9
 ----

  2BC
- 1A9
 ----

   2BC
x   4F
  ----

3A divided into 57FD3
 

13. Write -11011012 as an 8 bit number using:

a) signed magnitude
b) 1's compliment
c) 2's compliment

14. If the bit pattern 10101011 is stored in an 8 bit memory location in the following representations, what is the actual signed binary number in each case?

a) signed magnitude
b) 1's complement
c) 2's complement
 

15. Write 9510 as a BCD number using 8 bits

16. The following is a number in a floating point representation. The exponent is in value plus 256 form. The base is 2 and the radix-point is to the left of bit 10. The mantissa is normalized so that bit 10 is a 1 when positive. Negative numbers are stored as the 2's complement of the entire positive representation. Take the number and write it as a base 2 number. It should not have any exponents but have a radix point.
 

0 1       9 10            23
1 011111001 01101100000000

17. Write .000011012 in the floating point form as described in #16 above.