// Ch. 14 Demo 1


#include <iostream.h>
#include "M:\C++ Programming\AP classes\apvector.h"

int main()
{
	apvector <int> scores(5, 0);
	int i = 0;
	int sum = 0;
	double average = 0.0;

	for (i = 0; i < 5; i++)
	{
		cin >> scores[i];
		sum += scores[i];
	}

	average = double (sum) / i;

	cout << "The average is " << average << endl;

	return 0;
}