« All Events
5 PM – Intro To Java – Gamas
June 4, 2022 @ 5:00 pm - 6:00 pm
Today We Do
- We were able to get the temperature that user enter in the originalTempField.
- We were able to copy the temperature that user enter in the originalTempField into convertedTempField.
Homework
- Inside MainActivity.onConvertButtonClick(View): convert from Fahrenheit to Celcius using the following formula Celcius = (F − 32) × 5/9 . Set the celcius into convertedTempField. Before you apply the formula, you have to convert originalTemp from String to Integer. After you apply the formula, you need to convert from Double to String.