// functions implementation file #include "function.h" int getUserChoice(void){ int choice; // Tell the user for their selection cout << "1. Convert Celsius to Fahrenheit" << endl; cout << "2. Convert Fahrenheit to Celsius" << endl; cout << "3. Quit" << endl; // Prompt for, and get their choice cout << "Choice: "; cin >> choice; return choice; } double getUserTemperature(){ double t; cout << "\nEnter a temperature: "; cin >> t; return t; } // C = 5/9 * (F - 32) double fahrToCel(double fahr){ double cel = (fahr - 32) * 5 / 9; return cel; } // F = 9/5C + 32 double celToFahr(double c){ double fahr = c * 9 / 5 + 32; return fahr; }