Name: __________________________ Honor Code Acknowledgment: ______________________ Random Quiz # 13 CPS 08, Spring 1995 March 20, 1995 Problem 1: Array Max Write the function MaxValue that returns the largest value stored in the first num locations of the array a. int MaxValue(const Vector & a, int num) // precondition: a contains num values // postcondition: returns the largest of the values stored in a Problem 2: Sum Like it Hot Write the function Sum whose header is given below. (pay attention to the post condition) ------------------------------------- double Sum(const Vector & nums, int numNums) // precondition: numNums = # of elements in nums // postcondition: returns nums[0] * nums[1] * ... * nums[numNums-1] // this function is named very poorly