Difference between revisions of "AP Computer Science"

From WLCS
Line 1: Line 1:
 +
== Monday (11/16/15) ==
 +
'''Warmup:'''
 +
# Go to the [http://docs.oracle.com/javase/8/docs/api/java/lang/String.html 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?
 +
 +
'''Agenda:'''
 +
 +
 
== Thursday (11/11/15) ==
 
== Thursday (11/11/15) ==
 
'''Agenda:'''
 
'''Agenda:'''

Revision as of 08:35, 16 November 2015

Monday (11/16/15)

Warmup:

  1. Go to the Java String documentation
  2. Practice reading documentation by finding method(s) that would help you accomplish the following:
    1. What if you wanted to grab a single character of the String from a particular location?
      1. What is the name of the method? Is it overloaded?
      2. What are the required input parameters to use the method?
      3. What is the return type of the method?
    2. What if you wanted to remove any extraneous spaces or tabs (whitespace) around a String?
      1. What is the name of the method? Is it overloaded?
      2. What are the required input parameters to use the method?
      3. What is the return type of the method?
    3. 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)
      1. What is the name of the method? Is it overloaded?
      2. What are the required input parameters to use the method?
      3. What is the return type of the method?

Agenda:


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

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
    1. Use NetBeans to develop, and then paste your code into eIMACS
    2. Rename Project to: Lab01
    3. Rename/Add Package to: com.eimacs.lab01
    4. Rename Java Class to: Lab01Runner.java
    5. 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
    1. Use NetBeans to develop, and then paste your code into eIMACS
    2. If you have questions or are stuck, debug by yourself for a few minutes, and then ask Mr. Bui

Tuesday (10/27/15)

Warmup:

  1. Open your pig latin translator program
  2. Add a String[] with the following words: "good", "morning", "washington-lee", "how", "now", "brown", "cow"
  3. 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
    1. Use NetBeans to develop, and then paste your code into eIMACS
    2. 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:

Monday - Wednesday (10/19/15 - 10/21/15)

Agenda:

Thursday (10/15/15)

Agenda:

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:

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:

  1. Create a new NetBeans project named SummationWarmup
  2. Prompt the user for a variable N (you'll need to create a Scanner to do this)
  3. Create a variable named sum and initialize it to 0
  4. Write a while loop that sums up the first N natural numbers ( 1 through N ) and stores the results in your sum variable
  5. 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

Homework:

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
    1. Print out all the numbers from 0-20
    2. Print out all the numbers from 2015 down to 2000
    3. Write a loop that prints out the first 66 even numbers
    4. 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
    5. 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:

Archives