How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLProg Your Own Question
ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 9151
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
44910485
Type Your Homework Question Here...
ATLProg is online now
A new question is answered every 9 seconds

Request ATLPROG as my expert if he is available. If not, no

Customer Question

Request ATLPROG as my expert if he is available. If not, no worries
However, I need to complete the below assignment. Who ever works this must send back a change in the way and why there is a difference.
Instructions for assignment.
Re-design this program using methods. Explain the justification behind your re-design and why using methods is advantageous.
The following program prompts a user to enter temperatures in degrees Fahrenheit or Celsius. It then converts the entered temperature to the other measurement scale and displays both the entered temperature and the equivalent temperature in the other measurement scale.
import java.util.Scanner;
public class TemperatureConversion
{
public static void main( String [] args )
{
int userChoice = 0; // User selection: 1, 2, 3
float temperatureFahrenheit = 0; // Fahrenheit temperature
float temperatureCelsius = 0; // Celsius temperature
Scanner input = new Scanner( System.in ); // Create a Scanner to obtain user input
while( userChoice != 3 )
{
System.out.print( "Enter 1 to convert F->C, 2 to convert C->F, 3 to quit: " );
userChoice = input.nextInt(); // Read user input
switch( userChoice )
{
case 1: // Convert Fahrenheit to Celsius
System.out.print( "Enter a Fahrenheit temperature: " );
temperatureFahrenheit = input.nextFloat();
temperatureCelsius = 5F/9F * ( temperatureFahrenheit - 32F );
System.out.println( temperatureFahrenheit + " degrees Fahrenheit is " + temperatureCelsius + " degrees Celsius" );
break;
case 2: // Convert Celsius to Fahrenheit
System.out.print( "Enter a Celsius temperature: " );
temperatureCelsius = input.nextFloat();
temperatureFahrenheit = 9F/5F * temperatureCelsius + 32F;
System.out.println( temperatureCelsius + " degrees Celsius is " + temperatureFahrenheit + " degrees Fahrenheit" );
break;
case 3: // End Program
System.out.println( "Bye Bye" );
break;
default: // Invalid Data Entered
System.out.println( "Invalid Data: You must enter 1, 2, or 3" );
}
}
}
}
Re-design this program using methods. Explain the justification behind your re-design and why using methods is advantageous.
Submitted: 2 years ago.
Category: Homework
Expert:  ATLProg replied 2 years ago.
Hello I can help. By when you need this done
Customer: replied 2 years ago.
Can you get it to me by 6pn
Expert:  ATLProg replied 2 years ago.
That is too tight let me see
Expert:  ATLProg replied 2 years ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
Customer: replied 2 years ago.
Send me a write up of the difference between the Instructor Program I gave you and the programs you provided?
Expert:  ATLProg replied 2 years ago.
No you just sent one please check again
Expert:  ATLProg replied 2 years ago.
Are we good