Skip to main content

Programming using Java Hands On - Control Structures | Celcius to Farenheit Conversion

 

Celcius to Farenheit Conversion

Write a program to convert  Celsius to Farenheit.  Display the result correct to 1 decimal.

Create a class "CelsiusConversion.java" and write the main method.

Hint : 5 * (F – 32) = 9 * C,  F-Farenheit , C- Celsius

 

Sample Input  1 :

80

Sample Output  1 :

176.0

Sample Input  2 :

88

Sample Output  2 :

190.4


Result Description

Summary of tests
*Note: All the test cases might not have same weightage
+------------------------------+
|  7 tests run/ 7 tests passed |
+------------------------------+

Comments

Subscribe to Get's Answer by Email