Question: This is PYTHON Part 1: Housekeeping Read this lab all the way through BEFORE completing it. This lab is broken into multiple parts. Your goal
This is PYTHON
Part 1: Housekeeping
Read this lab all the way through BEFORE completing it.
This lab is broken into multiple parts. Your goal is to complete as many parts as you can by the end of the lab. If you do not complete all of them, you can still get full points; show that you have worked hard and put in effort and complete the minimum amount of problems and this will be accomplishable. You need to complete Part 3 to receive full points.
This lab will expand on our GUI abilities and will have you work with labels, buttons, entry fields, and data container objects.
Part 2: Converting Between Fahrenheit and Celsius.
Study the temperature conversions for Fahrenheit and Celsius below:
F to C: C = (F 32) * 5 / 9
C to F: F = C * 9 / 5 + 32
Part 3: GUI Layout (60 minutes)
This is the last problem required for full credit.
Write a GUI-based program that allows the user to convert temperature values between degrees Fahrenheit and degrees Celsius.
The interface should have labeled entry fields for these two values. These components should be arranged in a grid where the labels occupy the first row and the corresponding fields occupy the second row. At start-up, the Fahrenheit field should contain 32.0, and the Celsius field should contain 0.0. The third row in the window contains two command buttons, labeled Convert from Fahrenheit and Convert from Celsius. Sample screen shot is as follows:
When the user pressed the first button, the program should use the data in the Fahrenheit field to compute the Celsius value, which should then be output to the Celsius field. The second button should perform the inverse function.
Part 4: Kelvin Conversion (20 minutes)
This is not required for full credit, but should be completed if time permits.
Now, add the ability to convert to and from Kelvin using the same format as above by adding Label, Button, and Entry widgets. The Kelvin field should contain 273.15. A screen shot is as follows:
Converting to and from Kelvin requires the following formulas:
K to F: F = ( K 273.15 ) * 9 / 5 + 32
F to K: K = ( F 32 ) * 5 / 9 + 273.15
K to C: C = K - 273.15
C to K: K = C + 273.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
