Write a program that asks the user for a Celsius temperature. Convert Celsius temperatures to Fahrenheit temperatures.
Write a program that asks the user for a Celsius temperature. Convert Celsius temperatures to Fahrenheit temperatures.
The formula is
F = (9/5) * Celsius + 32
F is the Fahrenheit temperature and C is the Celsius temperature.
Create a display that will show the Celsius temperature and its equivalent Fahrenheit temperature. You should ask the user to enter the value for Celsius.
Do not allow the user to enter a value less than -50 or higher than 100. If so, the program should end.
Note: the numbers 9, 5, and 32 in the formula are integers and should be assigned to respective variables.
There are three screenshots for you to use to verify your output (there should also be a check that you have not entered a number less than -50)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images