Given the declaration of class TemperatureList, provide its…
Given the declaration of class TemperatureList, provide its complete implementation. #include #include const int MAX_LIST_SIZE = 50;class TemperatureList{public: TemperatureList(); // Initializes the object to an empty list . void add_temperature(double temperature); // Pre: The list is not full. // Post: The temperature has been added at the end of the list, after its current last element double getHighTemperature() const; // Pre: the list is not empty // Post: returns the highest temperature in the list double getLowTemperature() const; // Pre: the list is not empty // Post: returns the lowest temperature in the list double getAvgTemperature() const; // Pre: the list is not empty // Post: returns the average of all temperatures in the list bool full() const; // Returns true if the list is full; false otherwise. bool empty() const; // Returns true if the list is empty; false otherwise. friend std::ostream& operator
Read Details