@@ -0,0 +1,1146 @@
+import java.util.Scanner;%0A%0Apublic class temperature_conversion%7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09//directions and user input%0A%09%09Scanner s = new Scanner(System.in);%0A%09%09System.out.println(%22Indicate by number if you would like to convert%5Cn 1. From Farenheit to Celsius%5Cn 2. From Celsius to Farenheit%22);%0A%09%09int conversion_option = s.nextInt();%0A%09%09s.nextLine();%0A%0A%09%09//calculate and print results%0A%09%09if(conversion_option == 1) %7B%0A%09%09%09System.out.println(%22Please enter your temperature in Farenheit: %22);%0A%09%09%09int Far = s.nextInt();%0A%09%09%09float Cel = Farenheit_to_Celsius(Far);%0A%09%09%09System.out.println(%22That temperature is %22 + Cel + %22 degrees in Celsius%22);%0A%09%09%7D else if (conversion_option == 2) %7B%0A%09%09%09System.out.println(%22Please enter your temperature in Celsius%22);%0A%09%09%09int Cel = s.nextInt();%0A%09%09%09float Far = Celsius_to_Farenheit(Cel);%0A%09%09%09System.out.println(%22That temperatue is %22 + Far + %22 degrees in Farenheit%22);%0A%09%09%7D else %7B%0A%09%09%09System.out.println(%22Not a valid selection.%22);%0A%09%09%7D%0A%09%7D%09%0A%0A%09public static float Farenheit_to_Celsius(int temp) %7B%0A%09%09return (((temp - 32) * 5)/9);%0A%09%7D%0A%0A%09public static float Celsius_to_Farenheit(int temp) %7B%0A%09%09return (((temp * 9) /5)+ 32);%0A%09%7D%0A%7D%0A

converts between Farenheit and Celsius