Question: Java temperature conversion ..1 Verizon 1:46 AM Close // Temperature Conversion /1 your name public class TemperatureConversion public static void main( String [] args) //****1.
..1 Verizon 1:46 AM Close // Temperature Conversion /1 your name public class TemperatureConversion public static void main( String [] args) //****1. declare any constants here, FREEZINGPOINT would be a good candidate, declare it as int (remember naming conventions for constants) //*** 2. declare temperature in Fahrenheit as an int (remember naming convention for variables) and assign a value to it //** 3. calculate equivalent Celsius temperature as double ( coversion formula: tc = (tF - 32) 519) //***** 4. output the temperature in Fahrenheit and its calculated equivalent in Celsius //** 5. convert Celsius temperature back to Fahrenheit as int (use the same variable for the Fahrenheit that you declared in step 2) ( conversion formula: tF = tC * 9 / 5 32) // 6. output the temperature in Celsius and the converted back temperature in Fahrenheit to check correctness
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
