Comp 1671 Homework 8 Due Tuesday, November 5, 2002 Do these problems from the text: Chapter 9, problem 6, 7, 11 A. Write a function that swaps two float variables. To make sure that you understand what this function should do, consider this program: int main() { float f1(1.0); float f2(2.0); cout << f1 << " " << f2 << endl; swap(f1, f2); cout << f1 << " " << f2 << endl; return 0; } The output of this program should be 1.0 2.0 2.0 1.0 B. Write a function that takes a float array as a parameter, and returns the max and min of the elements in the array. (Recall that if a function needs to return more than one value, then it must return them in reference parameters.) Also write the function prototype.