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, 21.06.2019 22:00
Your task this week is to write a very simple spam classifier in python. it will classify messages as either spam (unwanted) or ham (wanted). the program will have a set of spam_words, words that are known to appear in spam messages. that set is included in the template file spam.pypreview the document. you will also define a spam threshold which reflects the allowed percentage of spam words in the message. you'll compute a 'spam indicator', which is the ratio of spam words to the total number of unique words in the message. if the spam indicator exceeds the spam threshold, the message is classified as spam. otherwise it is classified as ham. we'll assume that the spam threshold is a constant and has a value of 0.10. your program will prompt the user for a message and then will print the corresponding spam indicator with two decimal digits and the corresponding classification (spam or ham). the program will be case insensitive. the spam words are detected whether they are in lower case or upper case or mixed case. each word, spam or not, is counted once (even if it appears multiple times in the message.) the program will remove punctuation from the message before identifying the words and computing the spam indicator. for example '! ' must be identified as the spam word 'now'.
Answers: 3
question
Computers and Technology, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Primary tech skills are skills that are necessary for success in online education
Answers: 3
You know the right answer?
Fix all compilation errorsfor this JAVA program //
// Debugging Problem
import java. ut...
Questions
question
Mathematics, 25.06.2019 20:00
question
Mathematics, 25.06.2019 20:00
question
Mathematics, 25.06.2019 20:00
question
Mathematics, 25.06.2019 20:00
Questions on the website: 13722367