Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   pls help!!im java newbie (http://www.go4expert.com/forums/pls-helpim-java-newbie-t28007/)

johnmeyer 13Mar2012 10:46

pls help!!im java newbie
 
Pls help!!im jave newbie....anyone can help me to solve tis simple question???i need the whole step.
Urgent!!:cryin::cryin::cryin:
Write a java program to convert temperature degree from Celsius to Fahrenheit and vice versa,-You are required to display a message to the user asking for whether to convert to Celsius or Fahrenheit degree-If the user chose to convert from Celsius degree to Fahrenheit degree then use the following formula: ((9.0 / 5.0) * CELS) + 32.0- If the user chose to convert from Fahrenheit degree to Celsius degree then use the following formula: 5.0/9.0*(FAHR-32)-Your program should handle users input as the following-- F or f for converting from Celsius to Fahrenheit -- C or c for converting from Fahrenheit to Celsius-- Any other input the program should display a notification that the input is invalid.- Use JOptionPane class to interact with the user - Break down your code into smaller methods --A method to handle the conversion from Celsius to Fahrenheit --A method to handle the conversion from Fahrenheit to Celsius.-Test you program for the following temperatures -- 38C-- 80F

johnmeyer 13Mar2012 10:58

Re: pls help!!im java newbie
 
Write a program to convert temperature degree from Celsius to Fahrenheit and vice versa,

**You are required to display a message to the user asking for whether to convert to Celsius or Fahrenheit degree

**If the user chose to convert from Celsius degree to Fahrenheit degree then use the following formula: ((9.0 / 5.0) * CELS) + 32.0

**If the user chose to convert from Fahrenheit degree to Celsius degree then use the following formula: 5.0/9.0*(FAHR-32)

**Your program should handle users input as the following
-F or f for converting from Celsius to Fahrenheit
-C or c for converting from Fahrenheit to Celsius
-Any other input the program should display a notification that the input is invalid.

**Use JOptionPane class to interact with the user

**Break down your code into smaller methods
-A method to handle the conversion from Celsius to Fahrenheit
-A method to handle the conversion from Fahrenheit to Celsius.

**Test you program for the following temperatures
-37C
-80F


All times are GMT +5.5. The time now is 15:52.