Question
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
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! Use C++ to solve the problems
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started