// Yousef Rabah   Assignment 12 part 3    Nov 27th      Drawer 1602

#include "CS35lib.h"

int main()
{
	int entries, counter;
	double sum = 0.0;
	ifstream file_of_num;

	file_of_num.open ("ints.dat");

	set_decimal(2);
	for (counter=0; counter <= 5 ;counter++ )
	{	
		file_of_num >> entries; 
		
		sum = sum + entries;
	}
	cout<<endl;
	cout<<"Here is the sum of the first 5 numbers: "<<sum / counter<<endl;
	
	cout<<endl;
	file_of_num.close ();

	return 0;

}
/*
[rabahyo@quark CS35]$ ./a.out

Here is the sum of the first 5 numbers: 32.17

*/
