Question
Write a program that accepts the temperature in degrees Celsius and computes the temperature in Fahrenheit. The formula for converting Celsius to Fahrenheit is, in
Write a program that accepts the temperature in degrees Celsius and computes the temperature in Fahrenheit. The formula for converting Celsius to Fahrenheit is, in algebraic language,
F = (9/5)C + 32.
Sample screen output:
enter degrees Celsius: 30 30 degrees Celsius is 86 degrees Fahrenheit.
You may choose whether you want to use int variables or double variables to store the temperatures, and whether you want to allow decimals in the input or output.
This is one of those cases where it will be better to use the actual literal constants 9, 5, and 32 in your code, rather than creating named constants to represent those values.
DO NOT use the number 1.8 in your code.
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