#include <iostream>
#include <fstream>
#include "MinMaxT.h"
using namespace std ;

int main(void) {
	ifstream fin("data.txt") ;
	float newT ;
	fin  >> newT ;
	MinMaxTemp myTemps(newT) ;
	while (fin >> newT) {
		myTemps.AddNewTemp(newT) ;
	}
	cout << "Low temp is  " << myTemps.MinTemp() << endl ;
	cout << "High temp is " << myTemps.MaxTemp() << endl ;
	return 0 ;
}
