Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java temperature conversion ..1 Verizon 1:46 AM Close // Temperature Conversion /1 your name public class TemperatureConversion public static void main( String [] args) //****1.
Java temperature conversion ..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
Java temperature conversion
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