Difference between revisions of "AP Computer Science"

From WLCS
Line 1: Line 1:
 
== Thursday (10/4/18) ==
 
== Thursday (10/4/18) ==
 
'''Agenda:'''
 
'''Agenda:'''
 +
* Demo your first Processing drawing (it should also have your initials in the bottom right-hand corner)
 
* Introduction to Methods
 
* Introduction to Methods
 
** Intro to Processing methods
 
** Intro to Processing methods

Revision as of 08:19, 4 October 2018

Thursday (10/4/18)

Agenda:

  • Demo your first Processing drawing (it should also have your initials in the bottom right-hand corner)
  • Introduction to Methods
    • Intro to Processing methods
    • Method calls
    • Method parameters & arguments
      • Parameters are the variables in the method's definition header
      • Arguments are the values used in the method call
  • Tic-Tac-Toe Board
    1. Setup your screen size to be a large square (e.g. 600x600)
    2. Within the draw() function, give the background a color()
    3. Draw tic-tac-toe lines on your screen (make sure that the rows and columns are exactly 1/3 the size of the height and width)
    4. Add conditional statements in the draw() function to detect which square you are in
      • You'll need to access the mouse's current coordinates with mouseX and mouseY variables
      • Draw a square of a different color inside the particular square that you are in
      • The effect that you will generate will look like it is highlighting the current square where the mouse is
    5. Challenge: Modify your code so that changing the screen size, will automatically be adjusted and accounted for by the rest of your code. Hint: use height and width variables
    6. Challenge2: Modify your code so that it works without any conditionals. Hint: Use division and multiplication

Tuesday (10/2/18)

Agenda:

  • Questions on Activity 6: Airline meals?
  • Processing
    1. Download Processing
    2. Drag-n-drop the program where you want to keep it
    3. Check out the Processing documentation
  • My First Processing Drawing
    1. Draw your initials in the bottom right-hand corner
    2. Use Processing and method calls to draw your favorite emoji, logo, cartoon character, etc.

Friday (9/28/18)

Warmup:

  • Write out the truth tables for !, &&, and ||
  • Example:
x !x
true false
false true

Agenda:

  • Logical Operators review
  • Activity 4: Booleans review
  • Test 4 review
  • Boolean Bingo
    • You can only sign off the center square
    • You must try to find other people to sign off all the other squares (towards a blackout bingo board)
    • You can have a person sign off a maximum of 3 squares
  • Conditional Statements (if-statements)
  • Blocks
  • Complete the 3 Conditional Statement Practice assignments in Repl.

Homework:

  • Complete Activity 6: Airline meals

Back to School Night

Monday - Wednesday (9/24/18 - 9/26/18)

Warmup:

  • Take the Strings Quiz in Canvas
  • Complete Activity 3 and Test 3 if you have not already done so

Agenda:

  • Activity 3 questions?
  • Test 3 questions?
  • Keyboard input with Scanner
  • E-mail Harvester Assignment - submit via Repl.it
    1. Spammers use bots to crawl the Internet and harvest e-mail addresses to send spam e-mails. You will write a program that isolates and harvests the e-mail address from a String inputted via the Scanner and keyboard
    2. Using only String methods, you must find and isolate the e-mail address in the String. No loops.
    3. Print out the harvested e-mail address
  • Booleans
  • Relational Operators
  • Comparing Strings
  • Logical Operators
  • Complete Activity 4: Booleans
  • Complete Test 4

Homework:

  • Complete Activity 4 and Test 4 by Friday (9/28/18)

Thursday (9/20/18)

Warmup:

  • Evaluate the following expressions:
    1. String s = "warmup" + 1 + (2*3) + "string"; //what is s?
    2. "this\\is\na\"test\"on escape chars".length()

Agenda:

  • String Methods
  • Displaying Messages
  • Converting Between Numbers and Strings
  • Complete Activity 3: Strings 1

Homework:

  • Complete Activity 3: Strings 1 if you did not do so in class
  • Complete Test 3

Tuesday (9/18/18)

Agenda:

  • Test 2 review
  • Complete Activity 2: Circles & Spheres within the first 10-15 minutes of class
  • Strings
    • Special escape characters
    • Concatenation
    • String Methods
      • length(), substring(), indexof()

Friday (9/14/18)

Warmup:

  • Take the Types & Casting Quiz in Canvas

Agenda:

  • Arithmetic Expressions
  • Pitfalls and Surprises 1 2
  • Declaring and Assigning Values to Variables
  • Programming Shortcuts

Homework:

  • Complete Test 2 (attempt closed-book, but you may refer to references if you need to)
    • Please attempt it closed-book, closed-person. We will go over the questions in class

Wednesday (9/12/18)

Warmup:

  • Make sure you completed the Test 1 homework

Agenda:

  • Go over Types & Casting
  • Go over Test 1
  • Arithmetic Expressions
    • Modulus (%)
    • Integer division

Monday (9/10/18)

Agenda:

  • Mr. Bui's son is sick, so he's out today. Please complete the following agenda today.
  • Reminder: Sign electronic syllabus by end of today
  • Values, Types & Variables - Integers, Doubles, & Casting
    1. Login to eIMACS
    2. Go to Table of Contents
    3. Click on Java Basics
    4. Click on Variables and Expressions
    5. Read and work through the chapters on Integers, Doubles, and Casting
      • Attempt the Exercises, but do not spend too long on them
    6. Complete Test 1 (individually, open-book)

Homework:

  • Complete Test 1 (individually, open-book)

Thursday (9/6/18)

Warmup:

Agenda:

  • Attendance
  • Misc logistics
    • 20/10 no pass policy
    • Location of bathrooms
    • Sign in/out sheets
    • Mr. Bui has B Lunch
  • AP Computer Science Syllabus
    • Sign electronic form by next Monday (9/10/18)
  • Receive/register for eIMACS textbook
  • Create/login to Repl.it using your APS Google account
  • Introductions w/ Pictures
    1. You will be given a group Google presentation
    2. Create a new slide
    3. Use your first and last name as your title
    4. Paste 4 or more images that describe who you are

Homework:

  • Complete you Introductions w/ Pictures slide. We will all present our slide at the beginning of next class
  • Signed electronic syllabus by Monday (9/10/18)

Tuesday (9/4/18)

Agenda:

Archives