CS 301, Fall 2004 Assignment #2: 10 Points. Due Date: Friday, 9/24/04. (4) 1. Perform the necessary conversions to fill in the blanks in the following table. Indicate any repeating patterns of digits by drawing a line over the repeating pattern. BINARY DECIMAL HEXADECIMAL ________ __2.2__ _______ 1010.010 _______ _______ (2) 2. Redo Problem 3, HW#1 using float (not double) variables to calculate the value of N factorial (N!). What is the largest value of N for which N! is calculated exactly? What is the largest value of N for which N! is approximately correct (sign and most significant digits correct)? Explain.** (1) 3. Convert 0.6 to IEEE single precision floating point and give the result in hexadecimal. (2) 4. Write and test C (or C++) code to reverse the sign of a floating point number WITHOUT using arithmetic. Use only bitwise operations and test on both positive and negative floats. Hint: This is a one-liner!** (1) 5. What is the output from the following C++ conditional expression? Explain your answer. (-1 < 0U) ? cout << "-1 < 0 is true!" : cout << "-1 < 0 is false!"; **For full credit, turn in a well commented program listing, including your name and the problem number, and the results of the computer run for this problem.