Difference between revisions of "AP Computer Science"
From WLCS
Line 1: | Line 1: | ||
+ | == Tuesday (10/9/18) == | ||
+ | '''Agenda:''' | ||
+ | * Complete and demo Tic-Tac-Toe Select-a-Square | ||
+ | * Skim over eIMACS: Arrays chapter | ||
+ | * Mr. Bui's [https://drive.google.com/open?id=1Ayzvd1q-6RwZKplUtLHDCCLyO5XIR5kyeKUi8-htErY Arrays (Java) slides] | ||
+ | * Complete Activity 5 | ||
+ | * Complete Test 5 | ||
+ | |||
== Thursday (10/4/18) == | == Thursday (10/4/18) == | ||
'''Agenda:''' | '''Agenda:''' | ||
Line 9: | Line 17: | ||
*** Parameters are the variables in the method's definition header | *** Parameters are the variables in the method's definition header | ||
*** Arguments are the values used in the method call | *** Arguments are the values used in the method call | ||
− | * Tic-Tac-Toe | + | * Tic-Tac-Toe Select-a-Square |
*# Setup your screen size to be a large square (e.g. 600x600) | *# Setup your screen size to be a large square (e.g. 600x600) | ||
*# Within the draw() function, give the background a color() | *# Within the draw() function, give the background a color() |
Revision as of 10:23, 8 October 2018
Contents
Tuesday (10/9/18)
Agenda:
- Complete and demo Tic-Tac-Toe Select-a-Square
- Skim over eIMACS: Arrays chapter
- Mr. Bui's Arrays (Java) slides
- Complete Activity 5
- Complete Test 5
Thursday (10/4/18)
Agenda:
- Take the Strings + Conditionals Quiz in Canvas
- 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 Select-a-Square
- Setup your screen size to be a large square (e.g. 600x600)
- Within the draw() function, give the background a color()
- 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)
- 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
- 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
- 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
- Download Processing
- Drag-n-drop the program where you want to keep it
- Check out the Processing documentation
- My First Processing Drawing
- Draw your initials in the bottom right-hand corner
- 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
- 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
- Using only String methods, you must find and isolate the e-mail address in the String. No loops.
- 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:
- String s = "warmup" + 1 + (2*3) + "string"; //what is s?
- "this\\is\na\"test\"on escape chars".length()
Agenda:
- String Methods
- length(), substring(), indexOf()
- String Javadoc
- 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
- Login to eIMACS
- Go to Table of Contents
- Click on Java Basics
- Click on Variables and Expressions
- Read and work through the chapters on Integers, Doubles, and Casting
- Attempt the Exercises, but do not spend too long on them
- Complete Test 1 (individually, open-book)
Homework:
- Complete Test 1 (individually, open-book)
Thursday (9/6/18)
Warmup:
- Complete the Student Survey
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
- Join our repl.it class
- Introductions w/ Pictures
- You will be given a group Google presentation
- Create a new slide
- Use your first and last name as your title
- 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:
- Introductions & attendance