Question: import java.util.Scanner; public class ConvertCF { public static void main(String[ args) { // This line of code will get a number from the user //

import java.util.Scanner; public class ConvertCF { public static void main(String[ args) { // This line of code will get a number from the user // Create a Scanner so user input can be read Scanner scanner = new Scanner(System.in); // Prompt user for a temperature System.out.println("Enter a temperature in Celsius:"); System.out.println("Enter a temperature in Celsius: "); // Read in a number and store it in celsius Temp int celsius Temp = scanner.nextInt(); III INSERT YOUR CODE HERE TO CONVERT TO FAHRENHEIT AND OUTPUT AS SHOWN BELOW IIIII scanner.close(); // Closes the scanner so it doesn't cause issues Name your program ConvertCF.java Add a comment with your name, date, and program description at the top! Complete the main method to compute and output the converted temperature as shown below. The formula for converting from Celsius to Fahrenheit is C95 +32, though you might find you will run into errors if you use division with integers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
