Writing a c++ program that stores the following values in five different variables:28,32,37,24,and 33.We have been ask to get the average of the series of values given above. Here I what I got

/// This program calculates the sum and average of a series of values
#include<iostream>
using namespace std;
int main()

{
double sum,average;

double number1=28;
double number2=32;
double number3=37;
double number4=24;
double number5=33;
sum= number1+number2+number3+number4+number5;

cout<<"the sum of number1 to number5 is"<<sum<<endl;
average=sum/5;
cout<<"the average of number1 to number5 is"<<average<<endl;
return 0
}

Looks good to me!

Your code looks almost correct, but there is a missing semicolon at the end of the line before the `return 0` statement. Here's the corrected code:

```c++
// This program calculates the sum and average of a series of values
#include<iostream>
using namespace std;

int main() {
double sum, average;

double number1 = 28;
double number2 = 32;
double number3 = 37;
double number4 = 24;
double number5 = 33;

sum = number1 + number2 + number3 + number4 + number5;
cout << "The sum of number1 to number5 is " << sum << endl;

average = sum / 5;
cout << "The average of number1 to number5 is " << average << endl;

return 0;
}
```

Your code looks correct for calculating the sum and average of the given series of values. However, there seems to be a small error in the last line of your code. The statement `return 0` is missing a semicolon at the end. Here is the corrected version of your code:

```cpp
/// This program calculates the sum and average of a series of values
#include<iostream>
using namespace std;

int main() {
double sum, average;
double number1 = 28;
double number2 = 32;
double number3 = 37;
double number4 = 24;
double number5 = 33;

sum = number1 + number2 + number3 + number4 + number5;
cout << "The sum of number1 to number5 is " << sum << endl;

average = sum / 5;
cout << "The average of number1 to number5 is " << average << endl;

return 0;
}
```

To calculate the average, you first need to calculate the sum of all the numbers. You can do this by adding the values of `number1` to `number5` together and storing the result in the variable `sum`. Then, to calculate the average, you divide the sum by the total number of values (in this case, 5) and store the result in the variable `average`. Finally, you print the sum and average using `cout` statements.