#java #programming #tutorial #programmingtutorials
Celsius and Fahrenheit Temperature Convertor
Assuming that C is a Celsius temperature, the following formula converts the temperature to Fahrenheit:
F = 1.8 X c+32
Assuming that F is a Fahrenheit temperature, the following formula converts the temperature to Celsius:
C = (5/9) X (f-32)
Create a JavaFX application that allows the user to enter a temperature. The application should have Button components described as follows:
A button that reads Convert to Fahrenheit. If the user clicks this button, the application should treat the temperature that is entered as Celsius temperature and converted to Fahrenheit.
A button that reads Convert Celsius . If the user clicks this button, the application should treat the temperature that is entered as a Fahrenheittemperature, and converted to Celsius.