Question: Add comments to explain the functions of the program. Create user manual to explain how to use your program. import java.text.DecimalFormat; import java.util.Scanner; public class
- Add comments to explain the functions of the program.
- Create user manual to explain how to use your program.
![O C aci [ PRACTICELABS] LEARNING 2 Student Porta X HE (](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/02/65cbcff926d94_86465cbcff8f322e.jpg)


import java.text.DecimalFormat;
import java.util.Scanner;
public class FinalTemp2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
{String go="";
do{
double celsius, fahrenheit;
//convert the result 2 decimal places
Scanner S= new Scanner(System.in);
System.out.println("Hello!
Welcome to the Show!");
System.out.println("Enter the temperature in Fahrenheit: ");
while(!S.hasNextDouble()) {//repeat until valid entry is provided
S.next();
System.out.println("Please enter a valid temperature");
}
fahrenheit=S.nextDouble();
celsius=(fahrenheit-32)*5.0/9.0;
String strCelsius = String.format("%.2f", celsius);
System.out.println("Your Temperature in Celsius is: " + strCelsius);
System.out.println("Continue? (Y/N)");
go = S.next();
}
while(go.equalsIgnoreCase("Y"));
System.out.println("HELLO INSTRUCTOR WHITE, THIS IS THE INF231
FINAL ASSIGNMENT FOR TIMOTHY MOORE");
System.out.println("Thank you for all your help during this course")
}
}
}
O C aci [ PRACTICELABS] LEARNING 2 Student Porta X HE ( PLABAPP01 8 9 Word | Micros X || ashfordlabs.practice-labs.com/app/platform/lab.aspx 10 11 12 13 14 15 16 FinalTemp.java X 1 import java.text.DecimalFormat; 2 import java.util.Scanner; 3 4 public class Final Temp { 5 60 17 18 19 20 21 22 23 24 25 26 27 28 INF 132 Mana x A Inbox PLABDB01 public static void main(String[] args) { // TODO Auto-generated method stub (String go=""; do { } double celsius, fahrenheit; //convert the result 2 decimal places Scanner S-new Scanner (System.in); System.out.println("Find out the temperature"); System.out.println("Enter the temperature in Fahrenheit"); while (!S. hasNextDouble()) {//repeat until valid entry is provided S.next(); System.out.println("Please enter a valid temperature"); x fahrenheit-S.nextDouble(); celsius (fahrenheit-32) *5.0/9.0; String strCelsius-String.format("%.2f",celsius); } while (go.equals Ignore Case ("Yes")); O A Practice Labs x 31 System.out.println("The Temperature in Celsius is: "+ strCelsius); //Ask if the user wants to continue System.out.println("Do you want to convert another temerature? (yes/no) :"); //Prompt user for choice go S.next(); Practice Labs x DO TurboTax L x [] Lion DTF-Ne x + Jan 29 17 0 8 ( 2 E 7 edi @X A % 22:20 ...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
