PLEASE NOTE : FEEL FREE TO ASK ANY DOUBTS by COMMENTING
Language : Python
IDE : Python IDLE
:::::::::::::::::::::::::::::::::::::::::::: CODE ::::::::::::::::::::::::::::::::::::::::
from breezypythongui import EasyFrame
class TemperatureConverter(EasyFrame):
def __init__(self):
EasyFrame.__init__(self,title="Temperature Converter")
# add celsius label and field of one floating point precision
self.addLabel(text = "Celsius",row = 1, column = 0)
self.celsius = self.addFloatField(value=0.0,row=2,column=0,precision=1)
# add fahrenheit label and field of one floating point precision
self.addLabel(text = "Fahrenheit",row = 1, column = 1)
self.fahrenheit = self.addFloatField(value=32.0,row=2,column=1,precision=1)
# add button for celius to fahrenheit with command computefahr
self.addButton(text=">>>>",row=3,column=0,command=self.computeFahr)
# add button for fahrenheit to celius with command computeCelsius
self.addButton(text="<<<<",row=3,column=1,command=self.computeCelsius)
def computeFahr(self):
# get celsius value and compute fahrenheit and set to fahrenheit field
c = self.celsius.getNumber()
f = (c*9/5)+32
self.fahrenheit.setNumber(f)
def computeCelsius(self):
# get fahrenheit value and compute celsius and set to celsius field
f = self.fahrenheit.getNumber()
c = (f-32.0)*(5/9)
self.celsius.setNumber(c)
def main():
t = TemperatureConverter()
t.mainloop()
if __name__=="__main__":
main()
:::::::::::::::::::::::::::::::::::::: GUI ::::::::::::::::::::::::::::::::::
Starting
Fahrenheit to Celsius
Celsius to Fahrenheit
:::::::::::::::::::::::::::::::::::::: CODE in EDITOR ::::::::::::::::::::::::::::::::::
_________________________________________________________________
Dear Friend, Feel Free to Ask Any Doubts by Commenting. ASAP i'll respond when i'm available.
I'm on a critical Situation. Please Do Not Forget To Give A Thumbs UP +1. It will Helps me A Lot.
Thank YOU :-)
Programming Exercise 8.3 | Instructions Write a GUI-based program that allows the user to convert temperature...
Question: Fahrenheit To Celsius Temperature Converter GUI Assignment Write A GUI To... java Fahrenholt to Celsius Temperature Converter GUI Assignment Write a Gul to convert Fahrenheit temperatures to Celsius temperatures and has the following appearance: Com Convert It must include the following foatures • The frame we must say 'Fahrenheit to Celsius Temperature Converter • A border layout will be used for the GUI • The JLabelite of the GUI wil suy Fahrerholt to Celsius Temperature Converter and be in...
8.) Write a C++ program to convert temperature in degrees Fahrenheit to degrees Celsius. This is the equation for this conversion: Celsius = 5.0/9.0 (Fahrenheit-32.0) Have your program convert and display the Celsius temperature corresponding to 98.6 degrees Fahrenheit. Your program should produce the following display (replacing the underlines with the correct values): For a Fahrenheit temperature of-_ degrees, the equivalent Celsius temperature is degrees
The Gui has all the right buttons, but from there i get lost. I need to know whats wrong with my assignment can someone please help. The code I have so far is listed below, could you please show me the errors in my code. PYTHON Create the GUI(Graphical User Interface). Use tkinter to produce a form that looks much like the following. It should have these widgets. Temperature Converter GUI Enter a temperature (Entry box) Convert to Fahrenheit...
X Programming Exercise 8.6 | Instructions breezypythongui.py taxformwithgui.py + Q Desktop + ve Add radio button options for filing status to the tax calculator program of Project 1. The user selects one of these options to determine the tax rate. The Single option's rate is 20%. The Married option is 15%. The Divorced option is 10%. The default option is Single. 1 2 File: taxformwithgui.py 3 Project 8.6 4 A GUI-based tax calculator. 5 6 Computes and prints the total...
Java program Write a Temperature class that represents temperatures in degrees in both Celsius and Fahrenheit. Use a floating- point number for the temperature and a character for the scale, eitherでfor Celsius or 'F' for fahrenheit. The class should have Four constructors: one for the number of degrees, one for the scale, one for both the degrees and scale, and a default constructor. For each of these constructors, assume zero degrees if no value is specified and celsius if no...
Use Kilometer Converter application code to write Temperature Converter application to convert degrees Fahrenheit into degrees Celsius ((F - 32)*5/9). It needs to be JavaFX 1 import javafx.application. Application; 2 import javafx.stage. Stage; 3 import javafx.scene. Scene; 4 import javafx.scene.layout.HBox; 5 import javafx.scene.layout. VBox; 6 import javafx.geometry.Pos; 7 import javafx.geometry.Insets; 8 import javafx.scene.control.Label; 9 import javafx.scene.control. TextField; 10 import javafx.scene.control.Button; 11 import javafx.event. EventHandler; 12 import javafx.event. ActionEvent; 13 14 ** 15 * Kilometer Converter application 16 17 18 public...