I need help on my project. This is what I have so far:
import javax.swing.JOptionPane;
public class Convert{
public static void main(String[] args){
String choice = "";
do {
choice = JOptionPane.showInputDialog(null, "Would you like to enter a temperature?");
}
while(choice.equals("No") | choice.equals("no") | choice.equals("N") | choice.equals("n"));{
choice = JOptionPane.showInputDialog(null, "What is the temperature you would like to input?");
choice = JOptionPane.showInputDialog(null, "Is the temperature C (for celsius) or F (for Farenheit)?");
}
}
}
I have to ask the user if they want to enter a temperature, and with that response I have to ask them what the temp is, whether its Celsius or Farenheit, and give them the conversion.
Any suggestions?
Appreciate it!