#include <iostream>
using namespace std;
//function prototypes
int getFahrenheit();
float calcCelsius(int);
int main()
{
//declare variables
int fahrenheit = 0;
float celsius = 0.0;
//get input item
fahrenheit = getFahrenheit();
//display output item
cout << "Celsius is: " << celsius << endl;
return 0;
} //end of main function
//*****program-defined functions*****
int getFahrenheit()
{
int Temp = 0;
cout << "Enter Fahrenheit Temp: ";
cin >> Temp;
return Temp;
}
float calcCelsius(int Fahrenheit)
{
float temp = 0.0;
temp = 5.0 / 9.0 * (Fahrenheit - 32);
return temp;
} //end of program-defined functions
I need to put in three void functions for get fahrenheit, calccelcius, and display celsius. can anyone help please? I be on yahoo IM if anyone would like to im me. thanks