Question: Write and run the following program. public class TempConverter { public static void main(String[] args) { double fahrenheit = 100; double celsius; celsius =

Write and run the following program. public class TempConverter { public static void main(String[] args) { double fahrenheit = 100; double celsius; celsius = 0.56 * (fahrenheit - 32); System.out.print ("degrees celsius is: "); System.out.print (celsius); System.out.println("degrees fahrenheit: "); System.out.print (fahrenheit); } } Program 3.1 a. What is the output for the Program 3.1? [1 marks] b. Modify the above program to convert 100 degrees Celsius to degrees Fahrenheit. [3 marks]
Step by Step Solution
There are 3 Steps involved in it
public class TempConverter public static void mainString args double fahrenheit 100 double celsius c... View full answer
Get step-by-step solutions from verified subject matter experts
