2011 AP CS

Java 6 API · Coding Conventions · Java Syntax Sheet (PDF) · Class Object Concepts

This is an archive of our 2010-11 AP CS Class work.  You can find the latest class by the AP CS tab at the top.  Website links and assignments may vary so some material may be out of date.  Check in with Mr. Bergquist if you have any questions.

DateGoal*, Work Due & ExamsClass Activities
Friday 6/22
Last Day :-(
Have a Great Summer! Take some time to relax, you have all worked hard in class.

Please complete our: Course Survey - I appreciate the feedback. Let me know if there are any topics you want covered in Projects in CS next year too!

I enjoyed trying out all your Final Projects, share them with your family & friends.
It's been a great year. Hope you all enjoyed learning about programming. Go forth and program!

Keep me posted by email if you have any programming related projects or internships this summer! I'll be checking email periodically.

Consider CodeDay June 30th - July 1st See Mr. Bergquist for a discount code for $10 off registration
Thursday 6/21 BlockReflect on what you learned from your Final Projects

Project Review:
- Review your Project with Mr. Bergquist
While final reviews, take a chance to test drive your classmates projects!

CodeDay June 30th - July 1st - fun learn to create a game 30 hour coding marathon Check it out! See Mr. Bergquist for a discount code for $10 off registration
Monday 6/18 & Tuesday 6/19Combine and develop Java skills in your Final Project

Due Tuesday, June 19th - Save your AP CS Final Projects

When you are done, let Mr. Bergquist know and complete your AP Final Project Reflection (survey form) - required to complete your project (worth 5 of the final project points)
Complete: AP CS Final Project

Final Project Code Due Tuesday, June 19th

Want free Community College Credit for AP CS? Register here for Tech Prep - check with Mr. Bergquist if you think you already have an account. Click here for more info on Tech Prep.

Done? Please complete our: Course Survey
Friday 6/15
Purple & White Day 25 minutes
Getting the Senior paperwork settled while other students work quietly in the lab on their remaining projects.

Want free Community College Credit for AP CS? Register here for Tech Prep - check with Mr. Bergquist if you think you already have an account. Click here for more info on Tech Prep.

Senior Check Our Day!
Seniors, please complete our: Course Survey

Remember, all other Final Projects are due Tuesday, June 19th.
Thursday 6/14 BlockReflect on what you learned from your Final Projects

Seniors must:
- Complete the AP Final Project Reflection (survey form) - required to complete your project.
- Review your Project with Mr. Bergquist
Informal Bug Bash!
Take turns showing off your project and test drive other's projects to help them find bugs. Please try out at least two other projects and find two people to try your own. More is better and more fun.
Monday 6/11 & Tuesday 6/12Combine and develop Java skills in your Final Project

Instructions for Saving your AP CS Final Projects

Note: Although Mr. Bergquist will be out of class on Tuesday make sure to save your project files. He will be back after school in case any seniors need assistance.
Continued work on: AP CS Final Project

Final Project Code Due Date:
- Seniors: Tuesday, June 12th.

- All others: Tuesday, June 19th

Friday 6/8 & Monday 6/11Combine and develop Java skills in your Final Project

Final Project Due Dates:
- Tuesday 6/12 for Seniors
- Tuesday 6/19 for Juniors & Sophomores
Continued work on: AP CS Final Project

If you think you are done:
1) Make sure you have internally good code i.e. comments, indentation, naming conventions.
2) Consider adding a features like replay, input verification, and/or pretty up display
3) Help other teams that may need a fresh perspective
Thursday 6/7 - Amazon.com Visit day!Combine and develop Java skills in your Final Project

Project Poster is Due today, obviously.
Welcome Amazon.com Developers!!

Project Poster Presentations with Amazon.com developers
Monda 6/4 & Tuesday 6/5Combine and develop Java skills in your Final Project

Complete your Poster for the: Project Poster Presentation with Amazon.com developers on Thursday (June 7th)
Create your Poster for the: Project Poster Presentation with Amazon.com developers

Continue on: AP CS Final Project
Friday 6/1Combine and develop Java skills in your Final Project

Snake Alternative: Technology Paper (taken from my Intro to CS class)
Seattle Makers Faire at the Seattle Center this weekend!

Continue on: AP CS Final Project
Thursday 5/31[Block] Combine and develop Java skills in your Final Project

ATTENTION: THURSDAY 5/31, is the last day to get your Snake reviewed for grade. For SnakeBug Review with UW Interns, please save, compile and run this code:
Python File SnakeGameTest.java
Details on the: Project Poster Presentation with Amazon.com developers

Continue on: AP CS Final Project


Tuesday 5/29Combine and develop Java skills in your Final Project

Complete your Project update today. One response per team (5 project points, due 5/29)

ATTENTION: Thursday 5/31 is the last day to get your Snake reviewed for grade. Make sure that it is turned in (Grade-It Turn In HERE ASAP ( It will Fail to Compile, but WILL still be submitted, Sorry).)
Continue on: AP CS Final Project

Fill in your Project update today. One response per team (5 project points, due 5/29)

Video Game and Robotics Events at Seattle Center this Saturday, June 2nd - check them out!

Optoinal: Storing code online
Monday 5/21 - Friday 5/25Combine and develop Java skills in your Final Project

Check in on Teams that did not complete their: Project Proposal
Continue on: AP CS Final Project

Resources:
Swing Tutorial looks pretty good.
Applet Sample:
Java File HelloWorld2.java (from Ms. Martin)
Requires this image & .wav file to be in the same folder:
- bulldog.jpg
- yes.wav
Thursday 5/17 BlockPlanning out your Final Project

Team Feedback on and Update your: Project Proposal
Mock AP Exam Final results

Planning out your AP CS Final Project

For SnakeBug Review with UW Interns, please save, compile and run this code:
Python File SnakeGameTest.java
Monday 5/14
Tuesday 5/15
Wed 5/16 (short)
Documenting a Project Proposal & accomplish a Final Project

Project Proposal Due Tuesday, May 15

Get them Gridworld problems signed off including: (Last day for 15 week grades is Wed 16th May)
- Gridworld, part 4 Do Part 4's Exercises: Do a few: 1, 2, 3 & KingCrab
Ref: Critter notes / Gridworld API
- Jumper along with your testplan or use:
Java File JumperRunnerTest.java
- For a few of you get Snake turned in (Grade-It Turn In HERE ASAP ( It will Fail to Compile, but WILL still be submitted, Sorry).)
Final Project:
- AP CS Final Project
- Project Proposal Due Tuesday, May 15 (for full credit)

Thursday 5/10 & Friday 5/11Finishing up Exercises & get started on your Final Project

Get them Gridworld problems signed off including:
- Gridworld, part 4 Do Part 4's Exercises: Do a few: 1, 2, 3 & KingCrab
Ref: Critter notes / Gridworld API
- Jumper along with your testplan or use:
Java File JumperRunnerTest.java
- For a few of you get Snake turned in (Grade-It Turn In HERE ASAP ( It will Fail to Compile, but WILL still be submitted, Sorry).)
Final Project:
- AP CS Final Project
- Project Proposal Due Tuesday, May 15

For SnakeBug Review with UW Interns, please save, compile and run this code:
Python File SnakeGameTest.java
Tuesday 5/8
AP CS Exam Day!
AP EXAM

Preview (we will go over final version on Friday:
AP CS Final Project
Monday 5/7
(AP Exam tomorrow)
Final Review for AP CS exam

AP CS Final (Mock AP) Free Response Take Home Questions, due today
Final AP CS Exam Review:
- Multiple Choice Questions
- Free Response Questions
Friday: May the 4th be with YouSummative AP CS Free Response examAP CS Final (Mock AP) Free Response Questions - 2
Quick Reference Only: Please bring your paper copy of Quick Reference for 2012 Exam handed out last week.
Answer Key will be available end of day - stop by to pick up.

AP CS Final (Mock AP) Free Response Take Home Questions, due Monday 7th May (make arrangements with Mr. Bergquist in advance if you will not be able to turn them in by end of day.)
Thursday 5/3Summative AP CS Multiple Choice examAP CS Final (Mock AP) Multiple Choice exam
Quick Reference Only: Please bring your paper copy of Quick Reference for 2012 Exam handed out last week.
Answer Key will be available end of day - stop by to pick up.
Tuesday 5/1Review Material for AP CS exam

Get them Gridworld problems signed off including:
Gridworld, part 4
Do Part 4's Excercises: Do a few: 1, 2, 3 & KingCrab
Ref: Critter notes / Gridworld API
Done? try Ant Farm and here's a couple FRQ Critter problems:
PDF File opossumCritter
PDF File stockpileCritter
Please reserve after school time to review with this form. Preference will be given to those that sign up for after school help. Sign up multiple times for multiple days.

Sorting Algorithms & O-Complexity (much thanks to the Quynh for this)
- Complexity (Video: complexity)
- Sorts: like BinarySearch & Sort visualizations (Video: binary search)

In Class Review:
- Multiple Choice Questions?
- Free Response Questions?
- Specific areas or topics?
Monday 4/30Review Material for AP CS exam

Keep Practicing and Reviewing. Materials posted last week and these:
- Table of textbook & UW Resources (from Mr Davidson's class)
- UW 142 Class Summary with Videos, Lectures & Labs
- Our AP CS Exam Review pages were updated to include Abstract & Interface Classes (75-77)
- Practice-It problems



Social Media Research Internship Position with Get Schooled Opportunity good way to get some technical work experience.
AP CS Exam Survey Results
AP CS Final Exam (Mock AP) Schedule:
- Thursday, May 3rd - Multiple Choice (MC) Questions 1:15 in class*
- Friday, May 4th - 2 Free Response Questions in class*
- Weekend Homework due Monday, May 7th - 1 or 2 FRQ's.
* Answer Key will be provided for weekend study at end of day.

Review Sessions:
- Mr Bergquist in lab every day after-school for any individual or groups reviews
- Wednesday & Thursday after-school with UW Interns (Quynh & Michael, respectively)
- Possibly Monday 7th May, too

AP Exam Self Practices Help:
Multiple Choice (MC) Practice - answer key handed out. **Correction below
- In class today - go over requests
Free Response Questions - answers on website.
- Take Requests today for examples to go over in class on Tuesday & Thursday (or after-school)

ArrayList & Object Class Quiz returned (after discussion)
** There are 5 Grid world MC questions, that are typically placed questions # 21-25 (not 10-15 questions, I miss-read)
Thursday 4/26 BlockReview Material for AP CS exam, For-Each Loops & Recursion

Please Take this Survey today on prep for the AP Exam and Class Final (Mock AP)

Over the Weekend:
- Complete Practice Multiple Choice Test
- Try some Free Response Questions

Next Week - our Mock AP/Final Java Exam:
- Multiple Choice Test
- Free Response Questions
(dates to be determined based on survey results)

Get them Gridworld problems signed off including:
Gridworld, part 4
Do Part 4's Excercises: Do a few: 1, 2, 3 & KingCrab (Done? try Ant Farm)
Ref: Critter notes / Gridworld API

NOTE: The Spring Programming Contest this Saturday is held at Amazon.com in South Lake Union (345 Boren Avenue North). Make sure your team brings a laptop with the desired language API installed. Good Luck!
PreConditions & For-Each Loops
Java File ForEachLoopDemo.java
Recursion Mysteries

Practice AP Resources:
- Multiple Choice (MC) Practice - paper copy to be started in class, finish over weekend (answer key on Monday)
- Free Response Questions (FRQ) Samples from Previous Exams (Solutions are are in "Scoring Guidelines" Section) - try some, i.e. 2011 exam...
- PDF File Quick Reference for 2012 Exam (copy contained in the exam)
- College Board's Exam Tips for APCS A
- Free AP MC Practice Site site
- Our AP CS Exam Review pages

Final details next week:
- Complexity (Video: complexity)
- Sorts: like BinarySearch & Sort visualizations (Video: binary search)
Tuesday 4/24 BlockSuper & Polymorphism

Today's lecture should make clear: Gridworld, part 4
Do Part 4's Excercises: 1, 2, 3 OR KingCrab (Done? try Ant Farm)
Critter notes / Gridworld API

Try some Recursion Mysteries

Review our: AP CS Exam Review pages

BTW: UW Center fo Game Science is looking for (unpaid) Interns
Super & Polymorphism Summary! (includes Abstract Class & Methods!)
- Polymorphism full details (video)
- Inheritance & Super (using super video)

A few Practice It's: (you can find more under polymorphism or inheritance)
- Polymorphism Mystery: FooBarBazMumble
- Another Polymorphism Inheritance Mystery
Monday 4/23Snake is Due (Grade-It Turn In HERE It will Fail to Compile, but WILL still be submitted, Sorry).

Continue: Gridworld, part 4
Do Part 4's Excercises: 1, 2, 3 OR KingCrab (Done? try Ant Farm)
Critter notes / Gridworld API

Class Objects & ArrayLists Quiz Make Up (about 1.5 hours): After school Tuesday 24th or Wednesday 25th - if you cannot make these dates, you need to make arrangements with Mr. Bergquist - we will review answers to the Quiz on Thursday April 26th.
- Boolean Logic Review see slide pages (36-40) in...
Our AP CS Exam Review pages (subject to minor updates)
- Number representations: Decimal, Binary, Hexadecimal, & Octal
On Line Summary
Couple Practice-It's: binary1 / binary2
AP Review: UW 142 Class Summary with Videos, Lectures & Labs

Any late additions for the Spring Programming Contest (April 28th)? See Mr. Bergquist - must be in by 3pm today.
Preview: The End is Near!Here's a Preview of a few remaining items to cover in Prep for AP Exam (feel free to check them out over break if you like)Preview of a few topics to cover after break:
(Presentations subject to change/improve)
- Polymorphism & super (Videos: using super / polymorphism)
- Complexity (Video: complexity)
- BinarySearch & Sort visualizations (Video: binary search)
- Recursion - Video: recursive tracing & Koch Snowflake Example
Friday 4/13
Have a Great Spring Break!!
Creatin' Critters
Last day for full credit Sign Off on Jumper be ready with your test to swiftly demonstrate all traits.

Snake Due Monday, 23rd April (Grade-It Turn In HERE It will Fail to Compile, but WILL still be submitted, Sorry).
On to: Gridworld, part 4
Do Part 4's Excercises: 1, 2, 3 OR KingCrab (Done? try Ant Farm
Critter notes / Gridworld API

Reminder: Spring Programming Contest (April 28th) Registrations are due Sunday, Sunday April 22nd!
Thursday 4/12Quiz on Classes, Arrays and ArrayListsQuiz on Classes, Arrays and ArrayLists
Tuesday 4/10Create an Object driven game in GridWorld.

Sign off of your Jumper along with your testplan (document or Client programs) to swiftly demonstrate success.
Java File JumperRunnerTest.java

Study Review for upcoming Quiz on Thursday April 12th.
Continue work on the Snake Project (Due Friday 4/13).

Done with Snake? Read Gridworld, part 4 (For exercises, see Thursday...)

Note: Sorry we are skipping Fifteen puzzle. Try it if you like.
Monday 4/9Create an Object driven game in GridWorld.

Sign off of your Jumper along with your testplan (document or Client programs) to swiftly demonstrate success. BE PREPARED.
Java File JumperRunnerTest.java (This will Test Most Cases, but I want to see YOUR test strategy)

Study Review for upcoming Quiz on Thursday April 12th.
Spring Programming Contest at Amazon.com, April 28th!

AP Exam Sheet: GridWorld Official Quick Reference (PDF)
For your programs, here's an even Better reference: Gridworld API

For those who need it, Jumper Guidance:
Java File JumpStart.java
Java File SingleJumpStart.java

Continue work on the Snake Project (Due Friday 4/13).
Friday 4/6Mr. Bergquist returns....
Sign off of your Jumper along with your testplan (document or Client programs) to swiftly demonstrate success. BE PREPARED.

Done? Try the later sections in CodingBat for practice
Continue work on the Snake Project (Due Friday 4/13).

Study Review for upcoming Quiz on Thursday April 12th.
Thursday 4/5
[Block]
Innovation: How does thinking different change the world?

Make sure your Jumper is ready along with its test plan for sign off on Friday
Part I: Movie on how thinking different can change the world.
Part II: Continue work on the Snake Project.

Study Review for upcoming Quiz on Thursday April 12th.
Tuesday 4/3Create an Object driven game in GridWorld.

Setting Due Dates:
- Friday 4/6 - Check off of your Jumper along with your testplan (document or Client programs) to swiftly demonstrate functionality.
- Tuesday 4/10 - Snake Project.
- Thursday 4/12 - Quiz on ArrayLists, classes, interfaces, GridWorld (Study Review page)
Due dates set for Jumper exercise and Snake Project, and our next Quiz (at the right)
Make sure to use your class time wisely as well as UW student help and assist each other to complete this work.
Mr. Bergquist will be back on Friday to do sign offs. Please make sure you have already created and verified your testplan for Jumper to receive full credit.
Monday 4/2 Create an Object driven game in GridWorld.
Hopefully a UW Student will be present to help students having difficulty on their Jumper exercise. Feel free to use the lab projectors.
Take some on a Study Review for upcoming Quiz on ArrayLists, classes, interfaces, GridWorld - sometime next week.

Continue work on the Snake Project.
Friday 3/30Create an Object driven game in GridWorld.

Mr Bergquist is out of town, please work independently on the Snake project. If there is a serious concern, send an email.
Continue work on the Snake Project.

Done? Try the later sections in CodingBat for practice
Thursday 3/29
(Block)
Create an Object driven game in GridWorld.

Mr Bergquist is out of town, please assist each other in completing the Bugs and Jumper. If there is a serious concern, send an email.
Start the Snake Project.

Study Review for upcoming Quiz on ArrayLists, classes, interfaces, GridWorld - sometime next week. You may also want to reference the Supplemental Videos from previous weeks...
Tuesday 3/27Extend a Class in GridWorld to create a Jumper.

Mr Bergquist is out of town, please assist each other in completing the Bugs and Jumper. If there is a serious concern, send an email.
GridWorld, part 3
Complete Jumper

Monday 3/26Extend a Class in GridWorld to create a Jumper.
Complete and get SpiralBug, ZBug and DancingBug checked off from the second part of the GridWorld case study.
GridWorld, part 3
Work on Part 3 Exercise: Jumper - create clear test plan to demonstrate it is fully working.
Friday 3/23Create new Bug Actors in GridWorld.
Complete and get SpiralBug, ZBug and DancingBug checked off from the second part of the GridWorld case study.
Complete SpiralBug, ZBug and DancingBug in second part of case study.

Read:GridWorld, part 3
Start the Part 3 Exercise: Jumper
Thursday 3/22 (Block)Follow Inheritance and interact with SuperClasses. Set up the GridWorld Case Study, build your first bug!

Have GridWorld running in your Work Space
Work on SpiralBug, ZBug and DancingBug. Demonstrate them as a single runner.

What's next? GridWorld, part 3, of course. (this is a little denser to read, take your time)
PDF File Inheritance & Super
PDF File GridWorld Introduction
Link Set up GridWorld in your APCS workspace & JGrasp.
- Read the GridWorld, part 1 of the case study
- Do SpiralBug, ZBug and DancingBug in GW, part 2 of case study. Use a single runner to test.
Tuesday 3/20Define your Objects Sort Order in Lists using the Comparable interface and compareTo method.

Get Sign off On: Weight class lab practice.

Done? Review the GridWorld Introduction
Set up GridWorld in your APCS workspace & JGrasp.
Read the first part of the GridWorld case study...
Sample Comparable & compareTo code:
Java File StudentL.java
Java File StudentLClient.java

Complete: Weight class with a Comparable Interface lab practice.
Monday 3/19Define your Objects Sort Order in Lists using the Comparable interface and compareTo method.

Work on: Weight class with a Comparable Interface lab practice.
Presentation: Comparable & compareTo Method: making your Objects Sort Order!
Try them out creating the Weight class with a Comparable Interface lab practice.

Supplementary Videos:
- Interfaces
- Implementing Comparable
Thursday 3/15
(Block)
Create a common Interface for Objects.

Turn in: Project 8: Shopping Cart Here, Due today! (Note: include your testing client program as ShoppingTest.java - if you just used the frame then this one file may not Compile, not ideal but that is fine - thanks)
(Project Details)

Arrays Quiz (1 Hour)
Presentation: Interfaces


Sample Interface code:
Java File Shape.java
Java File Circle.java
Java File Rectangle.java
Java File ShapeTest.java
Monday 3/12Build a collection of Object Classes using ArrayLists to create a functioning project.
New Due Date for EVERYONE is Thursday 15th March by 11:59pm
Turn in: Project 8: Shopping Cart Here! (Note: include your testing client program as ShoppingTest.java - this one file may not Compile, but that is OK I will review it visually as well - thanks)
(Project Details)
Take out some paper for our: Warm up, OO Design and Composition

Arrays Quiz (i.e. Array Mysteries, little logic and Array Programs) - Thursday March 15th

FYI: UW has posted a version of the Diff Tool - linked here!
Wednesday & Thursday
3/7 (30min) & 3/8 (Block)
Build a collection of Object Classes using ArrayLists to create a functioning project.

Sign off on ArrayList practice
Complete ArrayList practice
Work & Complete: Project 8: Shopping Cart - due Monday, March 12th (Later for New York Travelers)

Done? Try the Random sentence generator
Tuesday 3/6Build a collection of Object Classes using ArrayLists to create a functioning project.

Sign off DUE for ArrayList Practice

Check the Source for your 5 week grade going out later this week.
ArrayList Practice

Then work on: Project 8: Shopping Cart - due Monday, March 12th (Later for New York Travelers)
Monday 3/5Sign off DUE for both Car AND Student Objects: Creating the Car & Student Object Classes Practice

Note: the Java Syntax Sheet above is updated to include ArrayLists. And don't forget to reference the Class Object Concepts Sheet
Continue: ArrayList Practice then on to our Next Project...
Project 8: Shopping Cart - due Monday, March 12th.

Arrays Quiz (i.e. Array Mysteries, little logic and Array Programs) - Thursday March 15th
Friday 3/2Complete both Car AND Student Objects: Creating the Car & Student Object Classes Practice - last day for full credit is Monday, March 5th.

Last day for full credit on the Your Own Point Object Class & its Bomb Client program. If you are not done, talk to Mr. Bergquist and go on to the other Object Class practices.
Start the ArrayList Practice for our Next Project...

Introducing: Project 8: Shopping Cart - due Monday, March 12th.
Thursday 3/1
(Block)
Start sign off on both Car AND Student Objects: Creating the Car & Student Object Classes Practice

Due Dates for full credit:
- Thursday 1st March: 2 D Arrays' ASCII image processing
- Friday, 2nd March: Your Own Point Object Class & its Bomb Client program
PDF File ArrayLists presentation
Tuesday 2/28Build robust Object Classes, demonstrating constructors, encapsulation, and exceptions.

Should have at least one (either Car or Student) Object signed off of: Creating the Car & Student Object Classes Practice
Continue Creating the Car & Student Object Classes

Supplementary Reviews Sheets & Videos: on Object Classes:
- Class Object Concepts & Vocabulary
- Object Class Review Slides
- defining a class
- constructors
- advanced instance methods
- encapsulation
Monday 2/27Encapsulate fields in an Object, add a ToString method and use "this" keyword. Create Arrays of Objects & add Exceptions.

Complete & demonstrate PointTest.java & the Glitter Bomb Client program using your Point Object Class
(2D Arrays image practice should be signed off by now.)
A gift: Object Class Review Slides, but we have not covered all these topics yet...

Arrays of Objects & Null
Object Encapsulation, ToString method & this keyword
Adding Exceptions

Start Creating the Car & Student Object Classes

Women in Technology Free Luncheon - Tuesday March 6th!!
Friday 2/17
Create an Object class with State (fields) & Behavior (methods) and add its Contructor for intitialization.

Complete & demonstrate PointTest.java using your Point Object Class.

Have a great Mid-Winter Break.
Create Your Own Point Object Class worksheet.
Java File PointTest.java to verify your Java Object Class

Arrays of Objects & Null
Thursday 2/16Create an Object class with State (fields) & Behavior (methods) and add its Contructor for intitialization.

Create Your Own Point Object Class - we will need it for tomorrow's project.

Make sure your ASCII image processing is signed off.
Introducing the Object Class!
- Object Presentation
- Contructor slides

Create Your Own Point Object Class worksheet.
Java File PointTest.java to verify your Java Object Class
Tuesday 2/14
<3
Complete: ASCII image processingComplete: ASCII image processing

Done: Try:
Link Simple Tic-Tac-Toe
Link Magic Squares

Monday 2/13Store information in 2D Arrays and create methods to display & manipulate them.

Solve 2 Assertion problems in your table group
Group Assertion Worksheet
PDF File 2D Arrays

Start ASCII Images in Arrays worksheet problem.
Friday 2/10Solve Assertion problems & apply Boolean logic.
Feel free to Practice-It!
See Chapter 5 for Boolean & Assertion examples
PDF File Boolean review

PDF File Assertions

Thursday 2/9
(Block)
Use arrays & their methods to solve the DNA project.
DNA project - Turn it in here - Due TODAY, Thursday 9th Feb.

Present your Structured Diagram for the DNA project to Mr. BQ

Late sign off's for Arrays Worksheets...
Complete your DNA project - Due today.

And your Structured Diagram for the DNA project
Tuesday 2/7Use arrays to solve the DNA project.
Complete & get Sign Off on:
- Arrays as Parameters Worksheet Due Tuesday 7th Feb*
Review your Structured Diagram for the DNA project before turning the project in.
World Tech Update: CES 2012
Work on the DNA project Due Thursday Feb 9th.
Create your Structured Diagram for the DNA project

- STEM Out! for young women interested in STEM is Saturday, Feb. 18th!
Monday 2/6Use arrays to solve the DNA project.
Complete & get Sign Off on:
- Array Practice Sheet (first) Due Monday 6th Feb*
- Arrays as Parameters Worksheet Due Tuesday 7th Feb*
Review your Structured Diagram for the DNA project before turning the project in.
Work on the DNA project Due Thursday Feb 9th.
Create your Structured Diagram for the DNA project
Friday 2/3Use the Java API to find coding methods & syntax.
Complete & get Sign Off on:
- Array Practice Sheet (first) Due Monday 6th Feb*
- Arrays as Parameters Worksheet Due Tuesday 7th Feb*

Done? Take a look at: Coding Bat
* Classwork demonstrated after the Due date will receive one point less per day.
Using the Java API: Writing to files
Link For the DNA project Due Thursday Feb 9th.
Complete: Arrays as Parameters Worksheet Due Tuesday 7th Feb*

Create your Structured Diagram for the DNA project - Review it before you turn in the DNA project.
Thursday 2/2Goal: How to approach structuring methods for a project.
Breaking down a program: Drawing out the structure of the Baby Names Project.

Using the Java API: Writing to files
Link Start DNA project

Complete: Arrays as Parameters Worksheet
Wednesday 2/1
(30 min)
Goal: create code to tabulate data into arrays to solve problemsPresentations: Arrays for Tallying
Java File DieRolls.java
Monday 1/30
Block
Sign off on:
- Final day to sign off for Scanner Contest practice problems
- Array Practice Sheet (first)
- Arrays as Parameters Worksheet

Done? Take a look at: Coding Bat
Finishing up Semester One...
Presentation: Arrays as Parameters
Work on: Arrays as Parameters Worksheet
**ANNOUNCEMENTS**
- BMSD Essay Contest deadline extended to Thursday 2nd Jan (.docx form) and BAM Minority Student Day is 10th Feb - talk to Mr. Bergquist for more details.
- STEM Out! for young women interested in STEM is Saturday, Feb. 18th!
- Microsoft has announced its summer 2012 internship program for high school students.
Thursday 1/26
(Final Block)
Last Day of Semester
First Semester Final Exam
Tuesday 1/24 (2nd Per)
Wed 1/25 (6th Per)
90 min
Done all the practice-it! problems? Try Coding BatMid-Term Review: Review Labs & Practice-It's

Work on: Arrays as Parameters Worksheet
Monday 1/23
Due: Corrections on Quiz (12/15) for ReGrade - 50% points gained with max of 18/22.Discuss impact of Snow Days on End of Semester Schedule

Mid-Term Review Material:
- Java Slide Summary
- Review Labs & Practice-It's
- Summary of Text Resources: presentations, Videos and some sample code (from Roosevelt's AP class notes)
Tuesday 1/17
(2nd Period Only)
Sign off on: Array Practice Sheet (first)Presentation: Arrays as Parameters
Work on: Arrays as Parameters Worksheet

Mid-Term Review Material:
- Java Slide Summary
- Review Labs & Practice-It's
- Summary of Text Resources: presentations, Videos and some sample code (from Roosevelt's AP class notes)
Friday 1/13Review Answers to: Arrays Group Warm Up

Complete Array Practice Sheet (first)
Return Quiz & Regrade option.
Presentation: Arrays as Parameters
Work on: Arrays as Parameters Worksheet

Supplemental Video:
- Array Mystery
- Array Traversal

Details on the: 2012 DigiPen Regional Programming Competition, February 11th
Thursday 1/12Complete Array Practice Sheet (first)Discuss Quiz & Semester's end.
PDF File Arrays Group Warm Up

Presentation: Arrays as Parameters
Tuesday 1/10Make sure you have filled out our Baby Names Project & Class Survey today. Complete Arrays presentation
Java File Sample ArrayExamples.java
Work on Array Practice Sheet (first)
Monday 1/9Project 6: Baby Names Due Turn it in
(Project Details see: Tuesday 12/13 entry)
- Please fill out our Baby Names Project & Class Survey today. Thanks!!
Afterschool: Last chance to make up 12/15 Quiz
Our Baby Names Project & Class Survey
Presentation: Arrays
Work on: Array Practice Sheet (first)

Announcement: PLU Programming Competition, Feb 4th
+ Another Competition at Digipen, Feb 11th. More details later.
Friday 1/6Work on Baby Names

Extra: Search the IMDB Top Films (using File Scan):
Java File IMDB.java
Text File imbd.txt
While Loop Review - Solving 2 problems off the Quiz
- Quiz for students who missed it (again)
Work on Baby Names

Thursday 1/5 (Block)Get 6 practice problems checked offWork on Baby Names
- Quiz for students who missed it
Java Code created in Class:
Java FileActOnAFile.java - Period 6
Java FileDemoFileRead.java - Period 2
Tuesday 1/3Get 6 practice problems checked off
UPDATE: Project 6: Baby Names Due Monday, Jan 9th - Turn it in (Details see: Tuesday 12/13 entry)
Line-based file input presentation
Work on Baby Names
Friday 12/16Have a Great Winter break!!Line-based file input presentation
- Any last minute sign off's on Strings??
Thursday 12/15
(Block)
Check Source for your 15 week Grade.
Do 6 problems from the: Contest practice
Quiz through Strings
Updated Java Syntax Sheet!
Then: Line-based file input presentation

Link Padding Strings Trick
Supplemental Video:
Token-Based Processing line based data
Tuesday 12/13Do 6 problems from the: Contest practicePDF File Project 6: Baby Names Due Monday, Jan 9th
Text File names.txt
Text File names2.txt
Text File meanings.txt
Java File DrawingPanel.java

Note: I added at the bottom of the Project Correctness Checklist information to see your previous Project Score Sheets easily.
Monday 12/12Double check you have Turned in your Name Generator. I see several not yet turned in.
Reminder: Quiz on Thursday, this Quiz Practice is highly encouraged.
Preview: Assignment 6: Baby Names
Garfield Programming Competition Victory - Fall 2011
PDF File File input with Scanner
Do 6 problems from the: Contest practice
File Input Example for the first problem of the April 2009 contest: Code Pr2dot1.java (data file: pr21.dat)
Friday 12/9Project 5: Creative Name Generator Due TODAY. Turn it in. Please name your file: NameGenerator.javaFile Input Demo (see links from yesterday)
Quiz Practice - Highly encouraged.
Thursday 12/8
(Block)
Turn in Project 5: Creative Name Generator Due Friday Dec 9th. Please name your file: NameGenerator.java

For Programming Competition: Java 6 Documentation API download page
Ms. Martin presents cool projects at UW
Java FileNextLineIssue.java (next() & nextLine() issue)
Permission Slip for the Programming Competition. Please bring in signed on Friday.
Tuesday 12/6Do 6 from the: Contest practice

Computer Science Open House TODAY After school, bring a friend for extra credit.
PDF File File input with Scanner
Example: first problem of the April 2009 contest: Coded Pr2dot1.java (data file: pr21.dat)

Counting Words:WordCounting.java
Monday 12/5Turn in is open for Project 5: Creative Name Generator Due Friday Dec 9th. Please name your file: NameGenerator.javaFinalize Programming Competition Teams.
Friday 12/2Get signed off on: Strings Lab PracticeStrings practiceWork on Project 5: Creative Name Generator
Thursday 12/1
(Block)
Get signed off on: Strings Lab PracticeStrings practice
Are you on a team yet for the Programming Competition?
Contest practice - we will be practicing next week for this!
Code Sample from: While loops
Java File StringsFencePostExamples.java
Java File SentinelExample.java
Work on Project 5: Creative Name Generator (15 Points)
Supplementary Video:
Sentinal Loops
Tuesday 11/29Homework: Finish off any outstanding Strings Lab Practice and Returns & if/else Worksheets problems. While loops we will do the code samples on Thursday
Link Introducing Project 5: Creative Name Generator (15 Points)
Monday 11/28Done? Prepare for the Programming Competition:
PDF File File input with Scanner
PDF File Line-based file input
Link Contest practice (we will all be doing these next week)
Work on: Strings Lab Practice
Supplementary Video:
Strings
Wednesday 11/23
Early release
Work on: Strings Lab Practice
Tuesday 11/22Programming Contest, Saturday Dec 10th!
Register Team of 3 by Sunday, Dec. 5th
Work on: Strings Lab Practice
Monday 11/21 DUE: Project 4: Birthday
Turn in Project 4 here
Strings!
Link Strings Lab Practice
Java File From previous year: BabyNamer.java
Friday 11/18Project 4: Birthday due date moved to Monday.
Turn in Project 4 here
Done? Play Manufactoria or do more Practice It!
Optional: if you would like to use a copy of the Java Textbook for the year, see Mr Bergquist. We have several new copies.
Thursday 11/17Work on Project 4: Birthday
Turn in Project 4 here
Review Quiz scores
Tuesday 11/16Work on Project 4: Birthday
Turn in Project 4 here - Due Monday, 21st November.
Link Project Correctness Checklist
Java File CondReturns.java (with a Method that can be used in the Birthday Project)
Supplementary Video:
- Cummulative Sum
(Note several if/else videos listed below)
Monday 11/14Get Returns & if/else Conditionals Lab Worksheet checked off BEFORE starting the Project. If Returns & Cumulative Sum (PDF) will help with Practice & Project...
Introduce & Start: Project 4: Birthday Due Monday, 21st November.
Thursday 11/10
(Block)
Quiz through Math, Parameters & Graphics
Any last minute sign off's for First Quarter Lab Worksheets?
- Math & Scanners Lab Worksheet
- Graphics with Parameters Lab Worksheet
After the Quiz:
If Returns & Cumulative Sum (PDF) - this will help with the Returns & if/else Conditionals Lab Worksheet
Java File CondReturnsSums.java
FYI: Project 4: Birthday
Tuesday 11/8
(Short Day)
Work on: Returns & if/else Conditionals Lab Worksheet
Monday 11/7Check the Source & make sure all your Lab worksheets are complete (have 10 points).
Review Solutions for: Quiz Practice Homework Assignment
Upcoming Quiz Q&A (through Math, Parameters & Graphics)
Friday 11/4End of the Quarter. Make sure you have all work in for Grading.Supplemental Video:
Factoring if/else
Thursday 11/3
(Block)
Get sign off on all past Lab Worksheets
Some time to work on the Quiz Practice Homework Assignment
Returns & if/else Conditionals Lab Worksheet
Update our Java Syntax Sheet?
Supplemental Videos:
- Scanner
- Nested if/else
Tuesday 11/1Quiz Practice Homework Assignment - complete to be reviewed in class on Friday.

Intro Returns & Conditionals (if/else)
Java File BMI.java
Monday 10/31Complete & Sign off on:
- Math & Scanners Lab Worksheet
- Graphics with Parameters Lab Worksheet using Practice It! from UW
Reminder Deadline TODAY for Aspirations in Computing
Math & Scanners Lab Worksheet
Anyone turning in Cafe Wall late, needs to notify Mr Bergquist. We have 7 students outstanding for this assignment.
Thursday 10/27
(Block)
Start: Math & Scanners Lab WorksheetPDF File Returns: Math & Scanners(PDF)

Java File MathScannerTrial.java
Java File Scan10Tokens.java
Monday 10/24
Tuesday 10/25
Wednesday 10/26
(35 min)
Complete - Graphics with Parameters Lab Worksheet using Practice It! from UW Problems:
- Exercise 3G.5: SquaresA
- Exercise 3G.6: SquaresB

Project 3: Café Wall Due Friday, 10/28, Turn It In Here
If done early, try additional Chapter 3 and 3G problems in Practice It!
Complete - Graphics with Parameters Lab Worksheet
Work On Project 3: Café Wall
Monday & Tuesday will be allotted for this project. NOTE: that it is due on Friday 10/28, however we do not have class that day - it is a Block day for 1-3-5.
NOTE: PDF File Our Computer Science Classroom Guideline (Updated 10/23)
Friday 10/21Graphics with Parameters Lab Worksheet
OR use Practice It! from UW Problems:
- Exercise 3G.5: SquaresA
- Exercise 3G.6: SquaresB
(if done early, start working on your Café Wall Project!)
Graphics Warm Up
Preview of Project 3: Café Wall
Graphics Part 2 (PDF)

Java File GraphicsParameters.java
Supplement: Parameterized Graphics Video
Thursday 10/20
(Block)
Practice: Basic Graphics

Upcoming Deadlines for CS Activities:
- Deadline is approaching for Aspirations in Computing, 31st October
- Prototype Design Camp deadline is this Friday 21st October
Graphics (PDF)
Java File DrawingPanel.java Must be copied to your Java code folder/directory

Java File GraphicsPrimer.java
Supplement: Basic Graphics Video
Tuesday 10/18Get checked off on Parameter Practice Lab Worksheet 1-3 first priority, then the rest.
Practice-It from WU:
1) Set up an account or sign in to: Practice It! from UW
2) Add yourself to this period's class for Garfield HS AP CS 2011
3) Solve Self-Check 3.3 Parameter Mystery to confirm it works for you - this will be checked in Practice-It
Review 1st Quiz Results
Continue work on Parameter Worksheet
Monday 10/17Complete Parameter Practice Lab Worksheet 1-3 first priority, then the rest.
Set up an account in: Practice It! from UW and add yourself to you period's class for Garfield HS AP CS 2011
Done: check out CodingBat.com
Check-in on Space Needle Project completion
Quiz update
Thursday 10/12
(Block)
[Quiz for those who were out on Monday]
Solve Parameter Mystery Lab Worksheet
Start Parameter Practice Lab Worksheet
Scope & Parameters (PDF)
Java File ScopeTest1.java
PDF File Parameter Mystery Lab Worksheet (PDF)
Link Parameter Practice Lab Worksheet

Supplemental Video:
Parameter Mystery
Wednesday 10/11
(30 minute Period)
Finish Algorithms Presentation & Exercises
OR
Start on Parameters - depending on the prognosis of our computers.
Monday 10/10Quiz Today covers: Println, Method calls, Expressions, basic loops and Nested Loops.
Project 2 due! - Project 2: Space Needle
Turn It In Here
due Tuesday 11th October.
Friday 10/7Reminder: Quiz on Monday 10th October will include: Println, Method calls, Expressions, basic loops and Nested Loops.Algorithms & Methods
Thursday 10/6
(Block)
Moving old computers & unboxing our new ones! This will a be a chaotic day and your help will be appreciatedWhat's on the Quiz Any questions?
Quiz Practice problems:
- Lab 2: Expressions, Variables, and Loops from Building Java Programs. A self-paced lab exercise.
- Set up an account in: Practice It! from UW and try the exercises for Chapter 2 and some later one's for Chapter 1 if you need.

Ball parking or Back of the Envelope Problem solving exercises.
Tuesday 10/4Last class time to work on Project 2: Space Needle
Turn It In Here
by Tuesday 11th October. (Note: class computers will not be available Thursday or Friday, maybe not on Monday either)

Done, read Holding a Program in One's Head
Review Criteria for Grading
Project 2: Space Needle
Monday 10/3Work on Project 2: Space Needle
Turn It In Here by Tuesday 11th October. (Note: class computers will not be available Thursday or Friday and we do not have class on Tuesday 12th, it is a Block day for 1-3-5)

Done? Review for the Quiz with the Resources to the right.
And then you can play Light Bot or Picobot
Go over Song Solutions and how it relates to Project 2: Space Needle
Presentation: Steps to create a Ziggurat figure (PDF)
Java File ZigguratDemo.java

Quiz Review Material:
- Lab 2: Expressions, Variables, and Loops from Building Java Programs. A self-paced lab exercise.
- Create an account in : Practice It! from UW and do the exercises for Chapter 2. You can also look at the later Chapter 1 exercises.
- If you would like to borrow a copy of the Building Java Programs text, ask Mr Bergquist.
Friday 9/30
(Purple & White)
Shortened period

Sign off on: Complex Figure Exercise
NOTE: Quiz moved to Monday 10th October and will include: Println, Method calls, Expressions, basic loops and Nested Loops.

GO BULLDOGS!!
Link Work on Project 2: Space Needle
Now due Tuesday 11th October.
Thursday 9/29
Get checked off on today:
- Expressions & Loops Lab Worksheet
- Complex Figure Exercise
Link Check out Your Song Verses!
Link Introducing Project 2: The Scaling ASCII Space Needle
Due: Tuesday, Oct 11th - since computers will be updated next week.

Here are couple pieces of Java code of Complex Shapes from our examples:
Java File ComplexFigures.java
Java File Mirror.java
Wed 9/28
[Short period, Early Dismissal]
Get checked off on: Expressions & Loops Lab Worksheet

complete: Complex Figure Exercise

Set up an account in: Practice It! from UW and try out exercises for Chapter 2.
PDF File Our Computer Science Classroom Guideline
Handout Parent packet for signature, due Monday Oct 3rd.
Tuesday 9/27
(Block)
Get checked off on: Expressions & Loops Lab Worksheet

Work on: Complex Figure Exercise

Set up an account in: Practice It! from UW and try out exercises for Chapter 2.
Warm Up: Java File WarmUpSept272011.java

jGrasp Demo!! (jGrasp Tutorial)
Sample Loop Results to try . . .
Java File NestedLoops.java sample solutions.

Supplementary Material:
- Lab 2: Expressions, Variables, and Loops from Building Java Programs. A self-paced lab exercise.
Friday 9/23Continue on: Expressions & Loops Lab Worksheet

Done? Start the Complex Figure Exercise we will be doing next Tuesday (Block Day).
Complex Figure & Class Constants (PDF)
Supplemental Video:
Complex Figure
Thurs 9/22
(Block)
Assignment 1 due! Turn it in

Work On: Expressions & Loops Lab Worksheet

Done? Try Picobot
Nested for Loops (PDF)
Complete Expressions & Loops Lab Worksheet

Supplemental Video:
Nested for Loops

Summary Syntax Sheet
Tuesday 9/20Continue: Expressions & Loops Lab Worksheet for Loop (PDF)
Supplemental Video: for Loops

Monday 9/19Java File Correct the code: Receipt.java to compute correctly
Start: Expressions & Loops Lab Worksheet
Expressions & Variables
Java File Receipt.java
Start: Expressions & Loops Lab Worksheet (PDF)
Supplemental Video: Variables & Assignments (PDF)
Friday 9/16Sign off on: Static Methods & Decomposition Lab Worksheet
Take our AP CS Class Survey today please.
Questions on Project 1: Song? Due 9/23
Lab time
Complete Expressions & Variables
And take our AP CS Class Survey.
Supplemental Video: Expressions
Thur 9/15
(Block)
Remaining Sign Off on BakeMoreCookies DecompositionWork on: Static Methods & Decomposition Lab Worksheet
PDF File Coding Conventions & Project Logistics
Link AP CS Coding Conventions
Link Project 1: Song Due 9/23

PDF File Expressions & Variables
Java File Receipt.java

Tuesday 9/13Sign Off on BakeMoreCookies DecompositionPDF File Slides: Static Methods & Decomposition
Java File Figures1.java
PDF File Static Methods & Decomposition Lab Worksheet
Supplemental Video: Methods
Monday 9/121) Get HelloWorld.java working
Java File Hello.java
2) Decompose BakeSomeCookies.java into a
few static methods to produce the same output.
Java File BakeSomeCookies.java
PDF File Slides: Comments, simple statements
Java File StartToday20110912.java
Java File BakeSomeCookies.java
Friday 9/9PDF File Slides: Programming, Java
Java File Hello.java
Thursday 9/8Our Corporate Classroom Standards:
PDF File All Classes' Standards
PDF File 2nd Period's Standards
PDF File 6th Period's Standards
Wednesday 9/7PDF File Welcome Slides
PDF File AP CS 2011 Syllabus

* Goal should be preceded by: “Student will be able to…” (AKA SWBAT).

SPS Network Use Agreement must be obeyed while using the Garfield Computer Lab and other computers.