//--------------------------------------------------------- // Implement and test a class that models a temperature // record. // // D. Searls // Asbury College // Oct 2006 //--------------------------------------------------------- #include #include #include using namespace std; class temperatureRecord { public: //----------------------------------------------------- // Construct a new temperature record with low and high // both set to 0.0. //----------------------------------------------------- temperatureRecord() { } //----------------------------------------------------- // Construct a new temperature record with the specified // state. // // In parameters: lowTemp, highTemp //----------------------------------------------------- temperatureRecord(double lowTemp, double highTemp) { } //----------------------------------------------------- // Construct a new temperature record with the same // state as the specified record. // // In parameter: temperature //----------------------------------------------------- temperatureRecord(const temperatureRecord& temperature) { } // Member functions //----------------------------------------------------- // Set the low temperature to the specified value. // // In Parameter: newLow //----------------------------------------------------- void setLow(double newLow) { } //----------------------------------------------------- // Set high temperature to the specified value. // // In Parameter: newHigh //----------------------------------------------------- void setHigh(double newHigh) { } //----------------------------------------------------- // Return the low temperature. //----------------------------------------------------- double getLow() const { } //----------------------------------------------------- // Return the high temperature. //----------------------------------------------------- double getHigh() const { } private: double low; // Low temperature double high; // High temperature }; //********************************************************* // M A I N D R I V E R //********************************************************* int main() { return 0; }