- This event has passed.
7 PM – Intro To Java – Gamas
April 17 @ 7:00 pm - 8:00 pm
Gamas Sub
Today We Did
- We reviewed Magic 8 Ball homework and created 2nd version of Magic 8 Ball.
- We introduced the concept of methods in Java.
Homework
- Create April17MethodHomework.java
- Create a new method convertFromFahrenheitToCelcius. It has one parameter int fahrenheit. Inside the method, it will convert fahrenheit parameter into celcius by using this formula (F − 32) × 5/9 = C . You have to return the result. This is very similar to what we did in the class with addNumbers method.
- Create another new method convertFromCelciusToFahrenheit. It has one parameter int celcius. Inside the method, it will convert celcius parameter into fahrenheit by using this formula (C × 9/5) + 32 = F . You have to return the result. This is very similar to what we did in the class with addNumbers method.