« All Events
4 PM – Intro To Java – Alex Lee
November 12, 2022 @ 4:00 pm - 5:00 pm
Homework:
- Create a new Java class <date>_MethodsHomework.java
- Create a new method convertFromFahrenheitToCelcius. It has one parameter int Fahrenheit. Inside the method, it will convert the 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 addFourNumbers method.
- Along with that create another method that asks for your favorite song, and if the song is “Shape of You” then say that it is your favorite song, otherwise say that the song is alright.