Difference between revisions of "AP Computer Science"
From WLCS
Line 3: | Line 3: | ||
* Questions on Activity 7? If you are having trouble, come in during GP | * Questions on Activity 7? If you are having trouble, come in during GP | ||
* [[Java - Pig Latin Translator]] | * [[Java - Pig Latin Translator]] | ||
+ | * Introduction to Java Methods (Functions) | ||
+ | ** [[Media:JavaMethods.pptx]] | ||
+ | ** Implement all the methods for [[Java Methods Test]] | ||
== Tuesday (10/13/15) == | == Tuesday (10/13/15) == |
Revision as of 08:02, 15 October 2015
Contents
Thursday (10/15/15)
Agenda:
- Questions on Activity 7? If you are having trouble, come in during GP
- Java - Pig Latin Translator
- Introduction to Java Methods (Functions)
- Media:JavaMethods.pptx
- Implement all the methods for Java Methods Test
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)
Wednesday (9/30/15)
Warmup:
- Grab a dry-erase board
- Open up tabs for:
Agenda:
- Grade Calculator walk-through
- Iteration
- Fix Grade Calculator to use a while loop
- While loops practice
- Print out all the numbers from 0-50
- Print out all the numbers from 75 down to 25
- Write a loop that prints out the first 100 even numbers
- Prompt the user for a number and store it in a variable n, then print out the first n odd numbers (starting at 1) using a loop
- Print out all the numbers that are divisible by 6 from 0 through 100
Homework:
- Complete Test 7
- This is the hardest test so far!
- Do not use the visualizer <- that would be cheating
- Trace code by hand!
- Be careful!
- Double-check work!
Monday (9/28/15)
Warmup:
- Check if you are missing any work
Agenda:
- Java IDEs (NetBeans, Eclipse, IntelliJ IDEA, etc.)
- Java Input using Scanner object
- NetBeans Practice
- Open NetBeans
- Create a new Java Application
- Title the application: GradeCalculator
- Create an array to store 7 numerical grade points (what type should this be?) in the 4 or 5 pt range
- Prompt the user for each grade and store it in each element of the array
- Calculate your overall GPA
- Use conditional statements to print out the correct letter grade
Homework:
- Complete any missing work (activities, tests)
- Read Iteration and While Loops
Thursday (9/24/15)
Warmup:
- Complete Activity 5
Agenda:
- Student accounts
- Username: first initial + last name
- Password: student ID #
- Homework?
- Penalty for incompletes
- Check your grades to see if you have any incompletes
- Arrays review
Homework:
- Read Conditional statements (if-statements)
- Read Blocks
- Complete Activity 6
- Complete Test 6
Tuesday (9/22/15)
Warmup:
- Complete Activity 3 if unfinished
- Complete Test 3 if unfinished
Agenda:
- Booleans
- Relational Operators
- Comparing Strings
- Logical Operators
- Complete Activity 4: Booleans
- Complete Test 4
- Arrays!!!
- Finish reading Arrays
Homework:
- Complete Activity 4
- Complete Test 4
- Finish reading Arrays
- Complete Test 5
Friday (9/18/15)
Warmup:
- Complete Activity 2.1 - 2.4 (it will count for a grade)
Agenda:
- Strings
- Concatenation (connecting/adding together)
- Methods - length(), substring(), indexOf()
- Converting to Strings
- Displaying messages
- System.out.print() and System.out.println()
- Complete Activity 3
- Complete Test 3
Homework:
- Complete Activity 3 if unfinished
- Complete Test 3 if unfinished
Wednesday (9/16/15)
Warmup:
- If you have not taken Test 1, then you must do so NOW
Agenda:
- Tests and grade curving
- Grades will be curved to the class average and standard deviation as a whole
- Types and casting review
- Arithmetic Expressions
- Pitfalls and Surprises 1 2
- Declaring and Assigning Values to Variables
- Programming Shortcuts
- Complete Activity 1: Rounding
Homework:
- Complete syllabus agreement form online
- Take Test 2
Monday (9/14/15)
- Lab cleanup & setup
- Wipe down desk areas
- Keyboards, mice
- Cables: power, network
- Introduction to Java
- Media:IntroJava.ppt
- http://www.pythontutor.com - Code Visualizer
- Hello world program
- Notetaking
- Use Google Drive
- Title the notes by class and date
- eIMACS - Java Basics->Variables and Expressions
- int, double, E notation
- casting
- Take Test 1
Homework:
- Syllabus agreement form online
- Complete casting section
- Take Test 1
Thursday (9/10/15)
- Name cards
- Complete the Student Survey
- Misc logistics
- 20/10 no pass policy
- Location of bathrooms
- Sign in/out sheets
- Mr. Bui has C Lunch (3rd Lunch)
- AP Computer Science Syllabus
- Complete online syllabus agreement form by the end of next week (9/18/15)
- Google Classroom
- Sign into your APS Google accounts
- Class code: 9tr0sv0
- www.eimacs.com
- Sign up for accounts (via Mr. Bui)
- Login!
- What is computer science?
- Introduction to Java
- Media:IntroJava.ppt
- http://www.pythontutor.com - Code Visualizer
- Hello world program
Homework:
- Go to Syllabus (on the left)
- Read it
- Complete the agreement form with your parent (you will need your APS Google login)
Tuesday (9/8/15)
- Introductions
- Name cards
Homework:
- Go to Syllabus (on the left)
- Read it
- Complete the agreement form with your parent (you will need your APS Google login)