Question: This coding is for C++ Write a function called ConvertToCelsius which takes 1 argument which is the temperature in Fahrenheit. The function converts the temperature
Write a function called ConvertToCelsius which takes 1 argument which is the temperature in Fahrenheit. The function converts the temperature to Celsius and returns the answer. The function prototype will look like: double ConvertToCelsius(double tempF); Write a function called printTemperature which takes 1 argument which is the temperature in Celsius. It prints the temperature in a sentence "The temperature is... Celsius" void PrintTemperature(double tempC); . Write a main method that prompts the user for three temperatures. Main calls ConvertToCelsius on each of the numbers (temperatures) the user enters and then prints the converted temperature using PrintTemperature. You must use a while or for loop! Write a function called ConvertToCelsius which takes 1 argument which is the temperature in Fahrenheit. The function converts the temperature to Celsius and returns the answer. The function prototype will look like: double ConvertToCelsius(double tempF); Write a function called printTemperature which takes 1 argument which is the temperature in Celsius. It prints the temperature in a sentence "The temperature is... Celsius" void PrintTemperature(double tempC); . Write a main method that prompts the user for three temperatures. Main calls ConvertToCelsius on each of the numbers (temperatures) the user enters and then prints the converted temperature using PrintTemperature. You must use a while or for loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
