Difference between revisions of "AP Computer Science"

From WLCS
(Friday (10/2/15))
(Friday (10/2/15))
Line 7: Line 7:
 
'''Agenda:'''
 
'''Agenda:'''
 
* Grade Calculator walk-through
 
* Grade Calculator walk-through
 +
* Fix Grade Calculator to use a while loop
 
* Iteration
 
* Iteration
 
** while
 
** while
 
** break - exits the loop where break is found
 
** break - exits the loop where break is found
 
** continue - jumps to loop condition where continue is found
 
** continue - jumps to loop condition where continue is found
* Fix Grade Calculator to use a while loop
 
 
* While loops practice
 
* While loops practice
 
*# Print out all the numbers from 0-50
 
*# Print out all the numbers from 0-50

Revision as of 07:56, 2 October 2015

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-50
    2. Print out all the numbers from 75 down to 25
    3. Write a loop that prints out the first 100 even numbers
    4. 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
    5. Print out all the numbers that are divisible by 6 from 0 through 100
  • 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

Wednesday (9/30/15)

Warmup:

Agenda:

  • Grade Calculator walk-through
  • Iteration
  • Fix Grade Calculator to use a while loop
  • While loops practice
    1. Print out all the numbers from 0-50
    2. Print out all the numbers from 75 down to 25
    3. Write a loop that prints out the first 100 even numbers
    4. 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
    5. 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
    1. Open NetBeans
    2. Create a new Java Application
    3. Title the application: GradeCalculator
    4. Create an array to store 7 numerical grade points (what type should this be?) in the 4 or 5 pt range
    5. Prompt the user for each grade and store it in each element of the array
    6. Calculate your overall GPA
    7. Use conditional statements to print out the correct letter grade

Homework:

  1. Complete any missing work (activities, tests)
  2. 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:

  1. Read Conditional statements (if-statements)
  2. Read Blocks
  3. Complete Activity 6
  4. 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:

  1. Complete Activity 4
  2. Complete Test 4
  3. Finish reading Arrays
  4. 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:

  1. Complete syllabus agreement form online
  2. Take Test 2

Monday (9/14/15)

  • Lab cleanup & setup
    • Wipe down desk areas
    • Keyboards, mice
    • Cables: power, network
  • Introduction to Java
  • Notetaking
    1. Use Google Drive
    2. Title the notes by class and date
  • eIMACS - Java Basics->Variables and Expressions
    • int, double, E notation
    • casting
    • Take Test 1

Homework:

  1. Syllabus agreement form online
  2. Complete casting section
  3. Take Test 1

Thursday (9/10/15)

Homework:

  1. Go to Syllabus (on the left)
  2. Read it
  3. Complete the agreement form with your parent (you will need your APS Google login)

Tuesday (9/8/15)

  • Introductions
  • Name cards

Homework:

  1. Go to Syllabus (on the left)
  2. Read it
  3. Complete the agreement form with your parent (you will need your APS Google login)