Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Temperature-ng, java //Broken Code // Debugging Problem import java.util.Scanner; public class Temperature public static void main( String args[]) int option; int degreel; int celsius1; int

image text in transcribed
Temperature-ng, java //Broken Code // Debugging Problem import java.util.Scanner; public class Temperature public static void main( String args[]) int option; int degreel; int celsius1; int fahrenheitl; Scanner input new Scanner( System.in ); option ; While ( option 3) Systen.out.printf( -%s XsVn%s ",--1 for Fahrenheit to Celsid., "2 for Celsius to Fahrenheit","3 to quit:) option = input.nextDouble(); System.out.println( "Enter the degrees in Fahrenheit:) degree1input.nextDouble) celsiusi (degreel 32) 59; System.out.printf( "The temp in Celsius is Xdn", celsiusi) if ( option2) System.out.println "Enter the degrees in Celsius: ); degree! = input.nextDouble(); fahrenheit! ( degree! * 9 / 5 ) + 32; System.out.printf "The temp in Fahrenheit is din, fahrenheiti); I/ end while loop // end method Main I/ end class Temperature Please fix the errors and give the right code using JAVA Page 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

11. Risk Tolerance. What is risk tolerance? Can it be measured?

Answered: 1 week ago

Question

Draft a proposal for a risk assessment exercise.

Answered: 1 week ago