AP Computer Science
From WLCS
Contents
- 1 Tuesday (12/1/15)
- 2 Tuesday (11/24/15)
- 3 Friday (11/20/15)
- 4 Wednesday (11/18/15)
- 5 Monday (11/16/15)
- 6 Thursday (11/11/15)
- 7 Monday (11/9/15)
- 8 Monday - Thursday (11/2/15 - 11/5/15)
- 9 Thursday (10/29/15)
- 10 Tuesday (10/27/15)
- 11 Friday (10/23/15)
- 12 Monday - Wednesday (10/19/15 - 10/21/15)
- 13 Thursday (10/15/15)
- 14 Tuesday (10/13/15)
- 15 Thursday (10/8/15)
- 16 Tuesday (10/6/15)
- 17 Friday (10/2/15)
- 18 Archives
Tuesday (12/1/15)
Agenda:
- Arrays and Objects
- Card class
- Deck class
- Acey Deucey assignment
- We will first analyze the game's rules
- We will design the game
- We will implement the console-based code
- We will test the game
- We will re-implement using GUI components
Homework:
- Complete Test 12
Tuesday (11/24/15)
Agenda:
- Use Thanksgiving Break to complete missing assignments
- Test 11
- Activities 12, 13, 14
- Lab 2
- Complete Lab 2: Points & Rectangles in NetBeans
- There will be GUI programming, so pay attention to directions
Friday (11/20/15)
Agenda:
- Completed Activity 14
- Complete Lab 2: Points & Rectangles in NetBeans
- There will be GUI programming, so pay attention to directions
Wednesday (11/18/15)
Agenda:
- 2nd Quarter so far:
- Completed Activities 12 & 13
- Completed Test 11
- Introduction to Object-Oriented Programming (OOP)
- What was before OOP?
- What is OOP?
- Media:IntroClasses.ppt
- Media:OOP.pptx
- Read / skim through eIMACS -> Object-Oriented Programming Concepts
- Read / skim through eIMACS -> Simple Objects up to Activity 14
- Complete Activity 14
- You should use NetBeans to develop
- You should reference notes and the eIMACS textbook to assist you when building classes (until you have it memorized)
Homework:
- Complete Activity 14 and any other missing assignments
Monday (11/16/15)
Warmup:
- Go to the Java String documentation
- Practice reading documentation by finding method(s) that would help you accomplish the following:
- What if you wanted to grab a single character of the String from a particular location?
- What is the name of the method? Is it overloaded?
- What are the required input parameters to use the method?
- What is the return type of the method?
- What if you wanted to remove any extraneous spaces or tabs (whitespace) around a String?
- What is the name of the method? Is it overloaded?
- What are the required input parameters to use the method?
- What is the return type of the method?
- If you were given a large String and all you wanted to do was isolate the very last word. How would you find the location of the beginning of the last word? (Hint: words are separated by spaces)
- What is the name of the method? Is it overloaded?
- What are the required input parameters to use the method?
- What is the return type of the method?
- What if you wanted to grab a single character of the String from a particular location?
Agenda:
- Recursion review - Media:Recursion_Java.ppt
- Be sure to identify and include the base case
- Be sure to make the recursive call AND to send a modified parameter into the call (not modifying the parameter will yield infinite recursion
- Complete Activity 13: Recursion
- Complete Test 11 - Review "Quick Reference 11" before you start!
Thursday (11/11/15)
Agenda:
- IDT Programming Contest meeting today for team registrations
- Dual Enrollment for NVCC CSC201
- Overloaded Methods
- Complete Activity 12: Optional Arguments
- Introduction to Recursion
- Media:Recursion_Java.ppt
- eIMACS - Recursive Methods
- Complete Activity 13: Recursion
Homework:
- Complete Activities 12 and 13 if you did not do so in class
Monday (11/9/15)
Agenda:
- Quarter is closing today
- Did you complete all the assignments?
- Multiple Variable Declarations
- Overloaded Methods
- Complete Activity 12: Optional Arguments
Monday - Thursday (11/2/15 - 11/5/15)
Agenda:
- Work on eIMACS Lab 1: Chatterbot
- Use NetBeans to develop, and then paste your code into eIMACS
- Rename Project to: Lab01
- Rename/Add Package to: com.eimacs.lab01
- Rename Java Class to: Lab01Runner.java
- If you have questions or are stuck, debug by yourself for a few minutes, and then ask Mr. Bui
Thursday (10/29/15)
Agenda:
- You should have completed all the tests through Test 10
- You should have completed all the activities through Activity 7
- Work on eIMACS Lab 1: Chatterbot
- Use NetBeans to develop, and then paste your code into eIMACS
- If you have questions or are stuck, debug by yourself for a few minutes, and then ask Mr. Bui
Tuesday (10/27/15)
Warmup:
- Open your pig latin translator program
- Add a String[] with the following words: "good", "morning", "washington-lee", "how", "now", "brown", "cow"
- Use a for-each loop to translate every word in the array
- This should not be extremely difficult. Simply put a for-each loop around your translation code
Agenda:
- Demo missing assignments:
- Methods review
- main() method
- Work on eIMACS Lab 1: Chatterbot
- Use NetBeans to develop, and then paste your code into eIMACS
- Let's walk through the first part of the lab
Homework:
- Complete missing Activities (check your eIMACS grades)
- Complete eIMACS Test 9 (for and for-each loops)
- Complete eIMACS Test 10 (static methods)
Friday (10/23/15)
Agenda:
- IDT Programming Contest (Nov - Mar)
- Come see Mr. Bui or Eric Weiner if interested
- Project Euler
- If you finish assignments early, you are encouraged to attempt these problems
- Project Rosalind
- If you finish assignments early, you are encouraged to attempt these problems
- Demo Java Methods Test
- Creating and using a static class w/ static methods
- We will walk through the first method
- Complete Java - Array methods assignment
Monday - Wednesday (10/19/15 - 10/21/15)
Agenda:
- Happy "Back to the Future" Day! (10/21/15)
- VCU Computer Science Day (open house)
- Demo Java - Pig Latin Translator
- Introduction to Java Methods (Functions)
- eIMACS chapters on Java methods
- Media:JavaMethods.pptx
- Implement all the methods for Java Methods Test
- Creating and using a static class w/ static methods
- We will walk through the first method
- Java - Array methods assignment
Thursday (10/15/15)
Agenda:
- Questions on Activity 7? If you are having trouble, come in during GP
- Java - Pig Latin Translator
Tuesday (10/13/15)
Agenda:
- Missing assignments
- For loop review
- For each loops
- Complete Activity 7 (you may use either type of for loops)
Homework:
- Complete Activity 7
Thursday (10/8/15)
Warmup:
- Go to eIMACS Gradebook
- Check if you have any missing / blank grades
- Grades in RED are incomplete. You need to go back and complete them
Agenda:
- Demo the following:
- Guessing Game Assignment
- Monte Carlo Calculation of Pi
- Taylor series Pi
- Taylor series e
- Java For Loops - eIMACS For Loops Chapter
- Convert your 4 programs above to use for loops instead of while loops. DO NOT delete your old code. Copy, paste, and comment out the old code.
Homework:
- Complete Test 8 - be sure to use scratch paper or a dry erase board
- Convert your 2 programs above to use for loops instead of while loops.
Tuesday (10/6/15)
Warmup:
- Create a new NetBeans project named SummationWarmup
- Prompt the user for a variable N (you'll need to create a Scanner to do this)
- Create a variable named sum and initialize it to 0
- Write a while loop that sums up the first N natural numbers ( 1 through N ) and stores the results in your sum variable
- Print out the sum
Agenda:
- Complete Guessing Game Assignment
- Note, the random number generator code is Python, so you will need to look up how to do it in Java
- Ex. (int) Math.ceil(Math.random()*100)
- Complete Monte Carlo Calculation of Pi
- Create a Java program to calculate Pi using a Taylor Series
- Taylor Series Pi
- Prompt the user for N, which should be how many Taylor Series terms to sum
- Create a Java program to calculate the math constant e using a Taylor Series
- Common Taylor Series
- Prompt the user for N, which should be how many Taylor Series terms to sum
Homework:
- Install Java JDK and NetBeans IDE (or an IDE of your choice)
Friday (10/2/15)
Warmup:
- Grades posted:
- Incomplete Activities and Tests hurt your grade
- Tests were given extra 9 points (curved 1.5 letters)
Agenda:
- Grade Calculator walk-through
- Fix Grade Calculator to use a while loop
- Iteration
- while
- break - exits the loop where break is found
- continue - jumps to loop condition where continue is found
- While loops practice
- Print out all the numbers from 0-20
- Print out all the numbers from 2015 down to 2000
- Write a loop that prints out the first 66 even numbers
- Prompt the user for a number and store it in a variable n, then print out the first n multiples of 3 (starting at 3) using a loop
- Print out all the numbers that are divisible by 7 from 0 through 1000
- Complete Guessing Game Assignment
- Note, the random number generator code is Python, so you will need to look up how to do it in Java
- Complete Monte Carlo Calculation of Pi
- If you have completed the above, create a Java program to calculate pi using a Taylor Series
- Finished that? Create a Java program to calculate the math constant e using a Taylor Series
Homework:
- Install Java JDK and NetBeans IDE (or an IDE of your choice)