0

Based on my header file. How would I write a complete definition of the function temp ().

```
const int MaxDays = 31; // Maximum number of days in a month
const int MaxTimes = 5; // Maximum number of times temperature is measured in
// a day plus one column to hold the average for the day
//-----------------------------------------------------------------------------------------
//
// Function: tempAvg ()
//
// Parameters:
// input tempArray: double; array of temperatures
// input days: integer; number of days for that month
// input times: integer; number of times temperature is measured each day
// for that month
//
// Pre-condition: input array must be populated with valid temperatures;
// input number of days must be between 28 and MaxDays (inclusive)
// input number of times must be at least one less than MaxTimes
// Post-condition: The average temperature for each day is calculated and
// stored in the last column of the array
//-----------------------------------------------------------------------------------------
void tempAvg (double [][MaxTimes], int, int);
```

I think the function prototype I wrote about is correct. Yes I have already started writing some code this is what I have so far.

`void tempAvg (double tempArray [], int, double [] , double & avg)`