Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
imageimageimage

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

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

Introduction To Programming With Java A Problem Solving Approach

Authors: John Dean

3rd International Edition

1260575241, 9781260575248

More Books

Students also viewed these Algorithms questions

Question

What does it mean when you use the final modifier for a method?

Answered: 1 week ago