2. How would you write the following formula as a C++ expression that produces a floating point value as a result? (pp. 9495)
3. Add type casts to the following statements to make the type conversions clear and explicit. Your answers should produce the same results as the original statements. (pp. 9598)
a. someFloat = 5 + someInt;
b. someInt = 2.5 * someInt / someFloat;
4. You want to compute the square roots and absolute values of some floating point numbers.
a. Which C++ library functions would you use? (pp. 103104)
b. Which header file(s) must you #include in order to use these functions?
5. Which part of the following function call is its parameter list? (pp. 101102)
Square (someInt + 1)
6. In the statement
alpha = 4 * Beta(gamma, delta) + 3;
would you assume that Beta is a value-returning function or a void function? (pp. 102105)
7. In the statement
Display(gamma, delta);
would you assume that Display is a value-returning function or a void function? (pp. 102105)
8. If you want to print the word Hello on one line and then print a blank line, how many consecutive endl manipulators should you insert after printing Hello? (pp. 106107)
9. Assume the float variable pay contains the value 327.66101. Using the setw and setprecision manipulators, what output statement would you use to print pay in dollars and cents with three leading blanks? (pp. 109113)
10. Reformat the following program to make it clear and readable. (pp. 113115)
//**************************************************************
// SumProd program
// This program computes the sum and product of two integers
//**************************************************************