![]() ![]() ![]() ![]() Thank you very much for any hints you could give me! import java.awt. java temperature-converter Updated on Mar 21 Java kamlesh-sharma-tech / nsp-project-java Star 0 Code Issues Pull requests This is a Temperature Conversion gui application which is made in java in which we can change the temperature like celcius to fahrenheit and vice versa. Write a program in java to input the temperature in Fahrenheit, convert it into Celsius and display the value in the Terminal window. Simply enter the temperature in Celsius that has been provided here to obtain the equivalent temperature in Fahrenheit. The main thing that's bothering me is that my code doesn't look very OO, I'm just using one class and my layout and logic isn't separated at all. Utilizing the C to F formula, which states that F (9/5) C+32, we are able to convert Celsius to Fahrenheit using this temperature conversion java code. D:JavaPrograms>javac FahrenheitToCelsius.java D:JavaPrograms>java FahrenheitToCelsius Temparature Fahrenheit to Celsius Conversion - Temperature in Fahrenheit: 100 Temperature in Celsius (100 Fh): 37. I'm using WindowBuilder for the gui part so I suppose my code could use some improvement. I'm a beginner to Java and programming in general and since I'm on a holiday to the US, I thought it would be a fun idea to write a program for converting Fahrenheit to Celsius and the other way around. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |