please DEBUG and type the new code
Q3: USING Java GRASP please DEBUG and type the new code
//3. Practice debugging this program. It has approximately 8 compiler errors, 3 logic errors, 3
//usability errors and 1 readability error. Identify them all.
import java.util.Scanner;
//Convert a temperature from Fahrenheit to Celsius.
public class FahrenheitToCelsiusx
{
public static void main( String [] args )
{
//declare data
double celsius;
double fahrenheit;
//input temperature
Scanner in = new Scanner( System.in );
double celsius = in.nextDouble( );
//calculate celsius equivalent
double celsius = 5/9 * fahrenheit - 32;
//output results
System.out.println( fahrenheit, "\U00B0F = " );
System.out.println( celcius, "u00B0C" );
}
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps