Question: Create a GUI in java that converts between Fahrenheit and Celcius Antemperatures. GUI should look like this: If I enter a number in the Fahr
Create a GUI in java that converts between Fahrenheit and Celcius Antemperatures. GUI should look like this: If I enter a number in the Fahr box, click F C the Centigrade is displayed. If I enter a value in Cent, the Fahrenheit is displayed when clicking C F So the boxes represent both inputs and outputs depending on the button clicked. If a box is clicked and no proper value is in the ionput box, an Error should be displayed. Do the conversion logic in a separate "business logic" class. The class called "TemperatureConversion" should just have private field. It should provide the following methods: toCentigrade toFahrenheit getValue No setters are necessary and have only one constructor. The internal field would take on different meanings depending on whether toCentigrade or toFahrenheit is called. If toCentigrade is called, then assume the internal value is in Fahrenheit. If toFanhrenheit is called, assume the value in in Centigrade. The getValue just returns the internal field.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
