#include<vector>
#include <iterator>
#include <iostream>
//#include <string>
#include "COUNT_GREAD.h"
using namespace std;
int main()
{
double midsemester;
double final;
vector<double> homework;
cout<<"midsemester"<<endl;
cout<<"final"<<endl;
cin>>midsemester;
cin>>final;
read_hw(cin,homework );
cout<<"##################################"<<endl;
cout<<midsemester<<" "<<final<<endl;
cout<<"the homework is: "<<endl;
//accessing by iterator
vector<double>::iterator sz = homework.begin();
while (sz != homework.end())
{
cout<<*sz<<" " ;
sz++;
}
cout<<endl;
//accessing by index
vector<double>::size_type sszz = 0;
while(sszz != homework.size())
{
cout<< homework[sszz]<<" " ;
sszz++;
}
}