American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6:30 PM — Intro to Java — Shawn

May 18 @ 6:30 pm - 7:30 pm

Today We Did
  1. Methods
Homework
    1. Create a new Java class <date>_MethodsHomework.java
    2. 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 addFourNumbers method.
  1. Copy the content of May11_Magic8Ball.java into May18_Magic8BallOOP. Run it and make sure it is running properly.
    1. Convert this into OOP:
      1. create run() method.
      2. Copy all the code from main() into run() method.
      3. And call the run() from main(). Look at how we did it in the May18_TellMeYourAgeMethod.java

If you have any questions, email me at szhuang@ayclogic.com

Details

Date:
May 18
Time:
6:30 pm - 7:30 pm
Verified by MonsterInsights