Python Program
Write a GUI program that uses a form to allow the user to convert temperaturevalues from Fahrenheit to Celsius and Celsius to Fahrenheit. The interface willhave 2 labels and 2 fields, one for Fahrenheit and the other for Celsius. Labels are on the first row and fields are on the second row. On the 3rd row, add 2 buttonslabeled F to C and C to F. When the user clicks the buttons, perform thecalculation. You can output the results to an output area as in the Loan Paymentprogram or you can output to another field using .setNumber or .setText
Formulas:
F to C
C = 5/9(F-32)
C to F
F = 9/5(C + 32)
Python Program Write a GUI program that uses a form to allow the user to convert temperaturevalues from Fahrenheit to Ce
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am