subject

Fix all compilation errorsfor this JAVA program //
// Debugging Problem
import java. util. Scanner;
public class Temperature
{ public static void main( String args[] )
{
int option;
int degree1;
int celsius1;
int fahrenheit1;
Scanner input = new Scanner( System. in );
option = 0;
While ( option != 3 )
System. out. printf( "%s\n%s\n%s\n", "1 for Fahrenheit to Celsius",
"2 for Celsius to Fahrenheit", "3 to quit:" );
option = input. nextDouble();
System. out. println( "Enter the degrees in Fahrenheit: " );
degree1 = input. nextDouble();
celsius1 = ( degree1 - 32 ) * 5 / 9;
System. out. printf( "The temp in Celsius is %d\n", celsius1 );
if ( option == 2 );
System. out. println( "Enter the degrees in Celsius: " );
degree1 = input. nextDouble();
fahrenheit1 = ( degree1 * 9 / 5 ) + 32;
System. out. printf( "The temp in Fahrenheit is %d\n", fahrenheit1 );
} // end while loop
} // end method Main
} // end class Temperature

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
You know the right answer?
Fix all compilation errorsfor this JAVA program //
// Debugging Problem
import java. ut...
Questions
Questions on the website: 13722367