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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!