APCS - 1819 - December
From WLCS
Contents
Monday - Friday (12/24/18 - 12/28/18)
- Winter Break
Tuesday - Thursday (12/18/18 - 12/20/18)
Agenda:
- Introduction to Recursion
- Recursion slides
- Recursion practice problems
- Write a recursive method that returns the sum of all the numbers from N down to 1: int sum(int N)
- Write a recursive method that prints every other letter of a string: void printSkipping(String s)
- Write a recursive method that returns true if a particular character is in the String: boolean findChar(char ch, String s)
- Recursion Practice Examples - We will convert the following from iterative to recursive algorithms
- Monte Carlo Pi
- Taylor Series Pi and e
- Looping exercises
- ...and more practice
- Recursion Problems (prepare to submit to repl.it)
- public static int count(String s, String ch) - returns the number of occurrences of ch (single character string) within s
- public static String reverse(String s) - returns the reversed String s
- public static int reverse(int i) - returns an int that is the full digit reversal of i (e.g. 1234 -> 4321)
- Complete Activity 13
Friday (12/14/18)
Warmup:
- Complete eIMACS: Activity 7 #3
Agenda:
- Test 9 review
- Overloaded methods
- When you have multiple methods of the same name, but different parameters (types or number of parameters)
- Examples:
- String's substring() method
- Processing's rect() method
- Complete Activity 12
Wednesday (12/12/18)
Agenda:
- Are you missing any work? (check eIMACS gradebook and StudentVUE)
- Complete Lab 1 on your own time
- For-each (enhanced for) loop
- Walk-through and examples
- Common pitfall(s)
- What are the advantages of a regular for loop? Disadvantages?
- What are the advantages of a for-each/enhanced? Disadvantages?
- When do you want to use a regular for loop vs. a for-each/enhanced for loop?
- Complete Test 9
Homework:
- Complete Lab 1: Chatter
- Complete Test 9
Monday (12/10/19)
Agenda:
- Complete Lab 1: Chatter
- Your project will be auto-graded when you export from NetBeans and upload it to eIMACS
Homework:
- Complete Lab 1: Chatter
Thursday (12/6/18)
Agenda:
- Go over eIMACS: Test 10 homework
- main method
- Comments
- Multiple variable declarations (comma-separated)
- Complete Lab 1: Chatter (you will need NetBeans or Eclipse)
Tuesday (12/4/18)
Warmup:
- Complete #1 of eIMACS: Activity 7: Checksums
Agenda:
- Make sure you have completed all repl.it methods assignments
- Complete eIMACS: Activity 11: Strings 2
- Use the AP CS exam quick reference card
- All methods should be able to be completed using the methods listed in the card
Homework:
- Complete eIMACS: Activity 7 #2
- Complete eIMACS: Test 10