American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro to Competitive Programming – Darin

April 8 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Reviewed concepts and tools for basic programming in Java
  2. Learnt the modulus operator
  3. Learnt the difference between Lists and Arrays

Homework:

Create a new file named Apr8_ArrayHomework.java, and submit to the google drive: here when you are finished!

  1. Create a new int array(6) (“numbers”) and add the following values: -100,2,3,100,-5,14
  2. Create a new int array(20) (“num2”) and use for loop to copy all elements from “numbers” to “num2”
  3. Add code to count how many negative numbers inside the “num2” array.
  4. After you learn how to use modulus in Java, write a code that will go through each element inside “numbers” and print all odd number inside the list using modulus (%) operator.
  5. Read about Java primitive data type – https://www.w3schools.com/java/java_data_types.asp

Notes:

You can reach out to me at ddjapri@ayclogic.com if you have any questions!

You can find class notes here.

Details

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