Question: Design a class Observed Function to represent a function composed of a list of observations collected at evenly spaced intervals, a function such as the distance function shown in Table. Assume that the initial observation is made at time 0, and that additional observations are recorded at times 1, 2, 3, and so on for some time unit. Include as private components of the class an array of observed values and the names of the time unit and the observation unit. For Table 10.5, these units would be "min" and "km." Either include a constructor function that initializes all components or overload the input extraction operator to initialize all components. Define a member function that approximates an Observed Function object's first derivative, storing this first derivative in an Observed Function object passed as a reference parameter. Use the central difference formula when possible. Define another member function to calculate the second derivative.