Q\ Write a program that converts a temperature from Celsius to Fahrenheit. It should (1) prompt the user for input, (2) read a double value from the keyboard, (3) calculate the result, and (4) format the output to one decimal place. For example, it should display "24.0 C 75.2 F". Here is the formula. Be careful not to use integer division! FCx9/5+ 32

icon
Related questions
Question
Q\ Write a program that converts a temperature from Celsius to Fahrenheit. It should (1)
prompt the user for input, (2) read a double value from the keyboard, (3) calculate
the result, and (4) format the output to one decimal place. For example, it should display
"24.0 C 75.2 F".
Here is the formula. Be careful not to use integer division!
FCx9/5+ 32
Transcribed Image Text:Q\ Write a program that converts a temperature from Celsius to Fahrenheit. It should (1) prompt the user for input, (2) read a double value from the keyboard, (3) calculate the result, and (4) format the output to one decimal place. For example, it should display "24.0 C 75.2 F". Here is the formula. Be careful not to use integer division! FCx9/5+ 32
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer