Create two variables to store the temperature in Fahrenheit and Celsius And call them appropriately (the naming is important).
Write a Program: Converting from Fahrenheit to Celsius
Your goal is to convert a temperature value from Fahrenheit to Celsius and display the result.
Your program should have the following: You should have 4 comment lines at the top: description of the program, author, section, and date.
Create two variables to store the temperature in Fahrenheit and Celsius And call them appropriately (the naming is important).
Output a prompt to enter a temperature in Fahrenheit to the console. Don’t forget a space at the end of the prompt.
Read the entered value from the console and store it in the Fahrenheit variable
Create an expression that converts Fahrenheit to Celsius (look the formula up if you need to). Save the result of this expression in the Celsius variable.
Write the result to the console. Your output should look similar to this:
95 degrees Fahrenheit = 35 degrees Celsius
Label all the steps correctly use C++
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images