
Patrick B. answered 05/04/21
Math and computer tutor/teacher
using namespace std;
//Do not modify anything on or above the line below this
//YOUR_CODE_BELOW
//YOUR_FUNCTION HERE
double celsiusToFahrenheit( double celsius)
{
return(
9*celsius/5 + 32
);
}
//YOUR_CODE_ABOVE
//Do not modify anything on or below the line above this
int main()
{
cout << fixed << setprecision(1);
double t1 = celsiusToFahrenheit(40);
cout << t1 << endl;
double t2 = celsiusToFahrenheit(32.0);
cout << t2 << endl;
}