@@ -0,0 +1,1008 @@
+import java.util.Scanner;%0A%0Apublic class Temperatura_C_F %7B%0A%09%0A%09%0A%09%0A%09static double conversor(char opt, double temp)%7B%0A%09%09%0A%09%09double temperatura = 0;%0A%09%09%0A%09%09%09switch (opt)%7B%0A%09%09%09%0A%09%09%09%09case ('C'):%0A%09%09%09%09case ('c'):%0A%0A%09%09%09%09%09temperatura = (temp*1.8)+32;%0A%09%09%09%09%0A%09%09%09%09%0A%09%09%09%09break;%0A%09%09%09%09%0A%09%09%09%09case ('F'):%0A%09%09%09%09case ('f'):%0A%09%09%09%09%0A%09%09%09%09%09temperatura = (temp-32)/1.8;%0A%0A%09%09%09%09%0A%09%09%09%09break;%0A%09%09%09%09%0A%09%09%09%09default:%0A%09%09%09%09%0A%09%09%09%09System.out.println(%22ERRO: N%C3%A3o foi confirmado se %C3%A9 C ou F...%22);%0A%09%09%09%7D%0A%09%09%0A%09%09return temperatura;%0A%09%09%7D%0A%09%0A%09%0A%09public static void main (String args%5B%5D)%7B%0A%09%0A%09char opt;%0A%09double temp, Resultado;%0A%09Scanner in = new Scanner(System.in);%0A%09%09%0A%09System.out.println(%22%3CConversor de Temperatura%3E====================================== %22);%0A%09%0A%09System. out.print(%22Digite C para Celsius e F para Fahrenheit (C/F): %22);%0A%09opt = in.next().charAt(0);%0A%09%0A%09System.out.print(%22Insira a temperatura: %22);%0A%09temp = in.nextDouble();%0A%09%0A%09Resultado = conversor(opt,temp);%0A%09%0A%09System.out.println (%22O Resultado da convers%C3%A3o foi uma temperatura de : %22+Resultado+%22 graus%22);%0A%09%0A%09%09%0A%09%0A%09%7D%0A%09%0A%7D%0A

Create Temperatura_C_F.java