Answered You can hire a professional tutor to get the answer.
How to write a module named temperatureConverter.py with the following functions, and use these in your own program, mymain.
How to write a module named temperatureConverter.py with the following functions, and use these in your own program, mymain.py.
- fahrenheitToCelsius(tempInFahrenheit) that accepts a temperature in Fahrenheit and converts it to Celsius.
- celsiusToFahrenheit(tempInCelsius) that accepts a temperature in Celsius and converts it to Fahrenheit.
Use this formula: Fahrenheit = 9/5 * Celsius + 32
Your program mymain.py will first prompt the user for a temperature in Fahrenheit and convert it to Celsius; and next prompt the user for a temperature in Celsius and convert it to Fahrenheit.
Check in both your module file (temperatureConverter.py) and main program (mymain.py)