// Author: Connor McDowell // Date: 1/20/24 // project reason: Homework 2 #include using std::cout; using std::cin; using std::endl; int main() { char i; std::cout << "Please enter C if you would like to change fahrenheit to celsius "; std::cout << "Or enter F if you would like to change celsius to fahrenheit "; cin >> i; if ( i == 'C') { float fah = 0.0; std::cout << "you have selected fahrenheit to celsius, please enter a whole number below" << std::endl; cin >> fah; float FtoC(float fah); } if ( i == 'F') { float cel = 0.0; std::cout << "you have selected celsus to fahrenheit, please enter a whole number below" << std::endl; cin >> cel; float CtoF(int cel); } } float FtoC(float fah) { // -32*5/9 float num = (fah - 32) * (5 / 9); return num; } float CtoF(float cel) { // 9/5+32 float num = (cel * (9.0 / 5.0)) + 32; return num; }