Homework Assignment #2
If a file is of the length 543246540422 bits, show the file length in the unit of byte, using prefix kilo, mega, giga, and tera , separately. (Up to three digits after the decimal point)
If the execution time of a program is 0.0008723459304 second, write this execution in terms of millisecond, microsecond, and nano second, separately. (Up to three digits after the decimal point)
Convert 5037_{10} and 4382_{10} to binary, octal and hexadecimal numbers using 16bit two's complement representation. Show 50374382 using binary arithmetic operation. Show conversion and calculation steps.
Convert the following binary/octal/hexadecimal numerals to decimal numerals: (a) 10101001110101_{2}, (b) 26743_{8}, (c) BD039A_{16}.
Convert 2703.625_{10} to IEEE 754 32bit single precision floatingpoint format. Show conversion steps.
Show the calculation of (a) 126_{8}´304_{8}, (b) 4E59_{16}+8D0A_{16}A58A_{16}.
Explain what is an escape sequence. Write the following texts in boldface courier font as a C string constant with escape sequences.
(a) 
Are you going to the movie? Yes, it's still early. (Note, the strings will be printed in two separate lines.) 

(b)  'A'%"123"xyz  
(c) 
Who's book is this? It's Bob's book, isn't? (Note, there is a tab character following the question mark.) 

(d)  \!@#$%^&*()[]{}_+"',.?/ 