/* This program converts a Fahrenheit temperature to a Celsius
   temperature, using class Temperature.

   Input:  A (Fahrenheit) Temperature
   Output: The equivalent Celsius Temperature
------------------------------------------------------------------*/

#include <iostream.h>

#include "Temperature.h"

int main(void)
{
   cout << "\nThis program converts Fahrenheit temperatures"
        << " to Celsius.";

   Temperature
      FahrenheitTemp,
      CelsiusTemp;

   cout << "\nPlease enter a Fahrenheit temperature"
        << "\n\t(the number of degrees, followed by an F): ";

   cin >> FahrenheitTemp;

   CelsiusTemp = FahrenheitTemp.Celsius();

   cout << "\n\n" << FahrenheitTemp
        << " is equivalent to " << CelsiusTemp << ".\n\n";

   return 0;
}

