Difference between revisions of "AP Computer Science"

From WLCS
 
(791 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Friday (10/23/15) ==
+
== [[APCS - Archives]] ==
'''Agenda:'''
 
* [http://idtus.com/contest/ IDT Programming Contest (Nov - Mar)]
 
* [https://projecteuler.net/ Project Euler]
 
* 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)
 
* [http://computer-science.egr.vcu.edu/events/computer-science-day/ 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 - [https://www.eimacs.com/eimacs/mainpage?cid=162149&epid=E2183414957 eIMACS For Loops Chapter]
 
** [http://cis.stvincent.edu/html/tutorials/swd/basic/control/repetition/img/for.gif For Loop Flow Chart]
 
** [http://www.tenouk.com/clabworksheet/labworksheet7_1.html For Loop Examples (C language)]
 
* 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
 
** [https://www.math.hmc.edu/funfacts/ffiles/30001.1-3.shtml 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
 
** [http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf 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)
 
** [http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html NetBeansIDE + JDK Bundle]
 
 
 
== 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
 
** [https://www.math.hmc.edu/funfacts/ffiles/30001.1-3.shtml Taylor Series Pi]
 
* Finished that?  Create a Java program to calculate the math constant e using a Taylor Series
 
** [http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf Common Taylor Series]
 
 
 
'''Homework:'''
 
* Install Java JDK and NetBeans IDE (or an IDE of your choice)
 
** [http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html NetBeansIDE + JDK Bundle]
 
 
 
== Archives ==
 
* [[APCS - 1516 - September]]
 

Latest revision as of 08:28, 13 September 2023