Question: IN JAVA PLEASE Write a program that accepts the temperature in degrees Celsius and computes the temperature in Fahrenheit. The formula for converting Celsius to
IN JAVA PLEASE
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
Get step-by-step solutions from verified subject matter experts
