//////////////////////////////////////////////////////////////////////////////
// ECC CIS-121 Spring 2001 //
// //
// Type of Assignment: In Class //
// Problem Number: 3 //
// Author: Daniel McEnery //
// Section Number: 05 //
// Date Assigned: 09/20/04 //
// Program Name: TempConvertFtoC //
// File Name: FtoC.cpp //
// Time Spent on Program: 0:10 //
// //
// Purpose of Program: //
// Create a program that converts Fahrenheit to Celcius //
// //
//////////////////////////////////////////////////////////////////////////////
//Include Section
#include <iostream>
#include <cstdlib>
using namespace std;
// Main program
int main ( )
{
// Variable Declations
int Deg_F; // the maximum number of terms used
double Deg_C; // the length entered by the user
// Output Identification
cout << "In Class #3 by Daniel McEnery ";
cout << "Please enter the temperature in Deg F:";
// Input for the degrees Fahrenheit
cin >> Deg_F;
// Formula to convert Fahrenheit to Celcius
Deg_C = (Deg_F - 32) * 5.0/9.0;
// Output of solved forumla
cout << "That is ";
cout << Deg_C;
cout << " Degrees Celsius.\n";
cout << "\n\nEnd Program.\n";
return 0;
}