I've been trying to code this for hours! Below is the page with the problem and I've included my code. Thank you.
P.S. This is in C++
http://www.putfile.com/pic.php?img=4828206
______________________________________
#include
using std::cout;
using std::cin;
using std::endl;
int getFahrenheit();
int calcCelsius();
int main()
{
//declare variables
int fahrenheitTemperature= 0;
int celsiusTemperature=0;
//call
fahrenheitTemperature=getFahrenheit();
//display output item
cout << "Celsius temperature:" << celsiusTemperature << endl;
system ("Pause");
return 0;
} //end of main function
int getFahrenheit()
{
int fahrenheitTemperature;
cout << "Enter fahrenheit temperature:";
cin >> fahrenheitTemperature;
return fahrenheitTemperature;
}
int calcCelsius()
{
int celsiusTemperature;
celsiusTemperature = 5.0/9.0 * fahrenheitTemperature;
return calcCelsius;
}
2007-02-21
11:56:17
·
4 answers
·
asked by
Christi
4
in
Computers & Internet
➔ Programming & Design