// lab01a.cc Sample program to calculate square root
// P. Conrad 9/7/2004 (note: substitute your own name and date in your
//                     celsius to farenheit program)

// the following two lines allow stream input and output
using namespace std;
#include <iostream>

// ************ user defined functions ***********

double farenToCelsius(double fTemp)
{
  return ((fTemp - 32) / 9.0 * 5.0);
}

// ************ main program  ************

int main(void)
{
  // declare a variable for farenheit temp
  double tempSuppliedByUser;

  // prompt for and read input
  cout << "Please enter a farenheit temperature: " << flush;
  cin >> tempSuppliedByUser;

  // output result, and end program

  cout << "Celsius equivalent: " << farenToCelsius (tempSuppliedByUser);
  cout << endl;
  return 0; // ends the main program

}


