American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro to Java – Sebastian

May 20 @ 7:00 pm - 8:00 pm

Today We Did

  1. Reviewed arrays, lists, for loops, for each loops, while loops, and methods
  2. You can always find the code we wrote in class in my Gitlab repository here:
    https://gitlab.com/gsugiart/tue-6-pm-sebastian-apr-2024
  3. AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Homework: Fill out the following method according to the comment:

    /*
    1) Create static method called findAverage(List<Integer> numbers)
    2) Call findAverage() in MAY20_review.java file's last line
     */
    
    public class JUN3_hw {
        ___ ___ ___ findAverage(List<Integer> numbers) {
            /*
            set integer sum variable to 0
            for (each n in numbers) {
                sum += n;
            }
            return sum / length of numbers;
             */
        }
    }


  2.  Call findAverage() in our MAY20_review.java file.

Details

Date:
May 20
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights