# Ap Exam date : Tuesday May 6th(link)

in room B101 at 7:45 AM

ALL AP-1 coding bat problems must be completed by Tuesday May 6th

AP Review (focusing on GridWOrld)

• Thursday 8th: DNS Recursion p. 259-265
• Wednesday 7th: Customer Info
• Tuesday 6th: Question 2, Interface question
• Monday 5th: DNS book – Gridworld: p.178-192

Week before AP

• Friday  25th  : Complete Trail free response question
• Thursday 24th (interfaces/abstract classes) :  p. 162-173
• Wednesday 23rd (OOP polymorphism) : 145-156

APRIL BREAK

• Thursday 4/10: (last grade of quarter 3) Do the practice ap question on word list
• Wednesday 4/9 : ch5 inheritance : 64-72
• Tuesday 4/8 : Ch4, OOP 54-56, and Horse problem
• Monday 4/7:  Ch4, OOP pages 52-54
• Friday 4/4 : Boolean Algebra-  Pages 43-46
• Tuesday 4/2 : Page 8- 13 in DNS

## Grid World Test:

Tuesday April 2nd

Assignments

• Critter runner
• Critter Assignments from Student Manual
• p 35-36 . All sublcasses due by EOD (that’s end of day, Lin) , 10/13
• Quick Ref
• Student Manual
• Below are common import statements that you will often need to include when you write subclasses. You can just copy and paste these and put them at the top
• Getting started | Documentation of Gridworld classes
• Location Constants
• Source code of classes that we will often reference

## Searching and Sorting

Searching/sorting (binary search)

## February Break Assignment

Complete the sorting Algorithms assignment described here (I must first give you a specific sorting algo)

• Scott – Merge sort  ( recursion )
• Misha – Bubble sort
• Michael J – Insertion
• Dom Rech – Insertion
• Brian Lin – Selection
• Paul Wilson- Quick Sort
• Max – Binary Search Tree

## Recursion

• Quiz/test – Thursday or Friday (weather dependent)
• evaluate several recursive functions
• write 1-3 recursive functions
• Recursion

Part I

# Test Wednesday 10/30  on Strings

## Unit 2 Arrays

### Unit 1. Data Types, value vs reference and some basics

• Floating Point Rounding Error (What’s going on here?)
• Real World Floating Point
• Number Fun 2
• Number Fun 3 (due in my inbox  before Wednesday 18th)
• printDigits( int n ) (pre requisite for being able to do Luhn Check)
• int sumDigits(int n) this method returns the sum of all digits in n so that sumDigits( 153) would return 9 (ie 1+5+3)
• Luhn Check  ( due before Monday’s class)
• 273 = true
127 = false
24372 = true
12492 = true
5435276 = true
• Extra Credit for unit
• Coding Bat Problems (Do any 3. If you are shooting for a high A…then Make Chocolate has your name on it). Register for an account if you have not yet.
• Extra Credit at projecteuler.net (Register at this site, if you are going to try these problems)
• Aliases

## Test #1

Thursday 26th

• Memory
• pass by value vs reference
• c++   and the meaning of ‘&’
• how it applies to primitive data types in Java
• Numbers
• ints, doubles,
• rounding error
• casting
• Strings in Memory
• aliasing
• meaning of “==” for primitive data types vs Strings
• loops
• number fun 2, 3
• accessing digits in a number
• Math.round()
• Math.random()
• generating a random number in a given range