Practice Homework 3 -- Storing Real Numbers

  1. Convert the following numbers to standard scientific notation (place the decimal point just to the right of the most significant digit.)
    a.	3,405			____________________________
    
    b.	1,002,095		____________________________
    
    c.	0.00357			____________________________
    
    d.	19.002			____________________________
    
    e.	6,902.005		____________________________
    
  2. Convert the following numbers which are stated in standard scientific notation to expanded form (our usual way of writing decimal numbers).
    a.	3.427001 x 103		____________________________
    
    b.	1.42 x 10-4		____________________________
    
    c.	7.0001 x 106		____________________________
    
    d.	6.5219 x 100		____________________________
    
    e.	1.139 x 10-5		____________________________
    
  3. Assume that we are using the following system for storing real numbers. The system is defined as follows:
    bit 1:sign, 0 for positive, 1 for negative
    bits 2-6:exponent stored in excess-15 notation
    bits 7-16: mantissa

    In order to determine what a real number would look like in memory (according to this system) you first convert the value to binary, then normalize it and use the number of positions you moved the radix point as the exponent. Be sure you represent the exponent in excess-15 notation.

    a.	What would 13.5 look like in memory?  		_____________________
    
    b.	What would -88.3125 look like in memory?  	_____________________
    
    c.	What value does 0100111100010000 represent? 	_____________________
    

  4. What is the ASCII representation, in decimal, hexadecimal, and binary of
    a.   The equal sign   ________ (decimal)  _________ (hex) ___________ (binary)
    
    b.   Lowercase z      ________ (decimal)  _________ (hex) ___________ (binary)
    

  5. Using the EBCDIC character set in Table 1.5 on page 62 of your text, and the memory dump of Figure 1.17b on page 60 of your text, what characters are at the following memory locations?
    a.      02A01B          ____________________________
    
    b.      02A024          ____________________________
    
    c.      02A09F          ____________________________
    
  6. Using the EBCDIC character set in Table 1.5 on page 62 of your text, and the memory dump of Figure 1.17b on page 60 of your text, specify the address of a memory location that contains the first digit (character representation) of your social security number.
                                   Address ________________