2012 AP CS

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

This is an archive of our 2012-13 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: AP CS Class 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!

If you'd like to try more programing over the summer, check out Code.org

Keep me posted by email if you have any programming related projects or internships this summer! I'll be checking email periodically.
Wed & Thurs
6/12 & 13
Block
Reflect on what you learned from your Final Projects

Please complete our: AP CS 2013 Class Survey

Stay connected with Garfield CS: please consider filling out this form.

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.
Final Project Demo's!
Then take a chance to test drive your classmates projects!

Thing to think about this summer - online privacy. Follow what happens to Edward Snowden. It could likely define how our online information is used by the government.
Monday 6/10 & Tuesday 6/11Combine and develop Java skills in your Final Project

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

When you are done, show Mr. Bergquist you program!
Complete: Final Projects Due Tuesday, June 11th
(Instructions below where to put a copy)

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: AP CS 2013 Class Survey
Friday 6/7
Purple & White Day 25 minutes

Best of luck Seniors!!
Getting the Senior paperwork settled while other students work quietly in the lab on their remaining projects.

Seniors, if you have not already done so, please complete our: AP CS 2013 Class Survey

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 Out Day! (Text books please)
- Academic & Professional Career Words of Advice
After Mr. Bergquist explains, if you want to stay connected with Garfield CS, please consider filling out this form. Thanks.

Remember, all other Final Projects are due Tuesday, June 11th.

REMINDER: Seattle Science Festival & Maker Faire, Sat June 8th (& 9th) this weekend!!
Thursday 6/6Combine and develop Java skills in your Final Project

Senior Demo Day!
Try out other (seniors') team's code - give them feedback.

We have some great projects here.

Reminder: Code is due Tuesday 6/11 for Juniors & Sophomores

Need a break: Try Archipelago an adventure game made by fellow students: Install & Run instructions. Please post you comments and feedback!
Seniors - time to demonstrate your AP CS Final Project to other students

- Return textbooks if you have them please!

Others, 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
Wednesday & Tuesday
6/4 & 5 Block
Combine and develop Java skills in your Final Project

Seniors: Complete your: AP CS Final Project and save code (see left)
Others you have till next Tuesday, June 11th - demo's on 12th & 13th.

- Please fill out our AP CS 2013 Class Survey, especially seniors.

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.
Seniors: Final Project code turned in today - each team must:
1) Create your Project Folder in our Shared Class Folder: My Computer > S: > embergquist > Writeable > AP CS > Period 3 or 6 >
2) Place a copy of all java code (or similar) and necessary data files in this folder
3) Compile the code in that folder (using JGrasp please) and make sure that it runs fine - you will be executing from here for the demo's on Thursday, 6/6.
4) Let Mr. Bergquist know that you have everything in place ready for grading & demo's
Keep in mind I will be reviewing the code before Thursday for grading.
Monday 6/3Combine and develop Java skills in your Final Project

Continue work on your: AP CS Final Project

Please fill out our AP CS 2013 Class Survey, especially seniors.
Continue on: AP CS Final Project - seniors note details for this week!

Announcements:
- Turn in your AP CS Text Book ASAP
- Please fill out our AP CS 2013 Class Survey, especially seniors. I appreciate your feedback and so will future students.
- 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.
- Seattle Science Festival & Maker Faire, Sat June 8th (& 9th)
Friday 5/31Combine and develop Java skills in your Final Project

Today: Friday 5/31, is the last day to get your Snake reviewed for grade. For SnakeBug Review with JJ or me, please save, compile and run this code:
Java File SnakeGameTest.java
Continue on: AP CS Final Project
Wed & Thur 5/29 & 30
[Short Block]
Combine and develop Java skills in your Final Project

ATTENTION: Friday 5/31, is the last day to get your Snake reviewed for grade. For SnakeBug Review with JJ or me, please save, compile and run this code:
Java File SnakeGameTest.java
Work on: AP CS Final Project







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

Review your Project Proposals with Mr. Bergquist. Should be saved to our class folder and complete (at least one full page with all details)
Work on your AP CS Final Project

ATTENTION: Friday 5/31, is the last day to get your Snake reviewed for grade.
Updates to the schedule for this year's: AP CS Final Project
Work on them today!!

Events at Seattle Center Sat, June 8th:
- Seattle Mini Makers Faire! Sat & Sun 8th & 9th
- Science Expo Day Sat 8th
- Independent Game Festival (iFest), Sat 8th
Wed & Thur 5/22 & 23

Have a Great Memorial Day Weekend!
Combine and develop Java skills in your Final Project

Complete Project Proposals and then start working on them!

Wed 3rd Period Only: Sign off's on Snake, for testing, please save, compile and run this code:
Python File SnakeGameTest.java. Sign off's next week for 6th Period.

Ideas for games:
- See bottom of our AP CS Final Project page.
-
Bagels (AKA MasterMind, Playable online Version)
Two you can do in DrawingPanel:
- FloodIt
- Conway's Game of Life
- Look at the posters around the room from last year and on the file cabinet.
Complete your Project Proposals due by Thursday 23rd May. Please MAKE SURE YOU ANSWER ALL PARTS. Should actually already be in class folder: My Computer > S: > embergquist > Writeable > AP CS > Period 3 or 6 >
Then start work on them!

Thursday, Mr. Bergquist will be out for AppDay Sam will be present to help out. Please work diligently!

For SnakeBug testing, please save, compile and run this code:
Python File SnakeGameTest.java

Monday & Tuessday
5/20 & 21
Combine and develop Java skills in your Final Project

Start Reviewing your Project Proposal - save a copy in our class folder: My Computer > S: > embergquist > Writeable > AP CS > Period 3 or 6 > (due no later than Thur, 23rd May)

Complete: Gridworld, part 4 - Do Part 4's Excercises: 1, 2, & 3 OR KingCrab should be done by now. Let's get these finished up - last day for credit, Tuesday 21st May (for 15 week grades).
Turn in Snake Project was due Friday, May 17th ( turned in (Grade-It Turn In HERE - File name: SnakeBug.java and it will Fail to Compile, but WILL still be submitted, Sorry.)
Continue on your : AP CS Final Project
Complete your Project Proposal - save a copy in our class folder: My Computer > S: > embergquist > Writeable > AP CS > Period 3 or 6 >

Graphics - SVG: Scalable Vector Graphics
- Oracle Summary
- PowerPoint on 2D Graphics in Java.

Reminders:
- AppDay, May 23rd!. Lots of prizes, let's check it out out (demo) www.touchdevelop.com/app - try it yourself
+ See Mr. Bergquist for permission slips.
- Deadline for the PSCSTA $500 awards Scholarships is Friday 24th May, details: here! + Forms by the Printer.
Thursday & Friday
5/16 & 17
Block
Planning out your Final Project Proposal

Create your Project Proposal - save a copy in our class folder.

Complete: Gridworld, part 4 - Do Part 4's Excercises: 1, 2, & 3 OR KingCrab should be done by now.
Turn in Snake Project is due Friday, May 17th ( turned in (Grade-It Turn In HERE - File name: SnakeBug.java and it will Fail to Compile, but WILL still be submitted, Sorry.)
UW in HS Exam for those enrolled.

Others please focus on:
- Your Project Proposal - save a copy in our class folder.
- finish up Critters & the Snake Project

For SnakeBug testing, please save, compile and run this code:
Python File SnakeGameTest.java

NEW for underclassmen: Free Tech Summer School Classes
Monday 5/13
Tuesday 5/14
Wed 5/15 (short)
Documenting a Project Proposal & accomplish a Final Project

Finish up on: Gridworld, part 4 - Do Part 4's Excercises: 1, 2, & 3 OR KingCrab due Friday, May 10th. Critter notes / Gridworld API
Finish Snake Project is due Friday, May 17th ( turned in (Grade-It Turn In HERE - File name: SnakeBug.java and it will Fail to Compile, but WILL still be submitted, Sorry.)

NEW: Free Tech Summer School Classes
Final Project:
- AP CS Final Project Details
- Project Proposal Due "end of week"

UW in HS Final Exam is Thur & Fri, May 16 & 17) - further details on the final and UW in HS Scoring can be found here.

Did you ever attend a PSCSTA Programming Contest or STEM Out? You can enter to win one of twp $500 awards (not just for seniors or college). Check details here!

Details on AppDay, May 23rd!
Wed, Thur & Fri
5/8, 9 & 10
Block
Finishing up Exercises & get started on your Final Project

Finish up on: Gridworld, part 4 - Do Part 4's Excercises: 1, 2, & 3 OR KingCrab due Friday, May 10th. Critter notes / Gridworld API
Finish Snake Project is due Friday, May 17th ( turned in (Grade-It Turn In HERE - File name: SnakeBug.java and it will Fail to Compile, but WILL still be submitted, Sorry.)

App Day, Thursday, May 23rd all day at Rainier Beach HS
AppDay.org You can learn:
- TouchDevelopment
Permission slips and full details on Monday!!
Final Project:
- AP CS Final Project
- Project Proposal Due Next week
- Note changes to Due Dates for Critters (Fri, May 10th) and Snake (Tue, May 14th).

Reminder: UW in HS Final Exam (Thur & Fri, May 16 & 17) Likely Topics:
- Expressions
- Array Mystery
- Input Mystery
- Inheritance/Polymorphism Mystery
- Line-based and/or Token-based File Processing (Scanners)
- Array Programming
- ArrayList Programming
- Classes (creating a method within a class)
Tuesday 5/7
AP CS Exam Day!
AP EXAM Day
Not taking or back from the AP? Finish up on Critters & Snake.
Preview (we will go over on Friday:
AP CS Final Project

Note changes to Due Dates for Critters (Fri, May 10th) and Snake (Tue, May 14th).
Monday 5/6
(AP Exam tomorrow)
Final Review for AP CS exam

Not taking the AP? Finish up on:
Gridworld, part 4
Do Part 4's Excercises: 1, 2, & 3 OR KingCrab due Friday, May 10th.
Critter notes / Gridworld API
Others: Finish Jumper was due Fri, May 3rd & Snake Project is due Tuesday, May 14th ( turned in (Grade-It Turn In HERE - File name: SnakeBug.java and it will Fail to Compile, but WILL still be submitted, Sorry.)
Final AP CS Exam Review:
- Multiple Choice Questions?
- Free Response Questions?
Resources for the AP & UW in HS Exams (at the bottom) & our Schedule - Updated!

Mr. Bergquist not around after school Tue-Thur; so adjustments to the due dates for Snake & Critters slightly.

Reminder: UW in HS Final Exam, Wed & Thur, May 15 & 16.
Friday 5/3
AKA Prom
Final Review for AP CS exam

Suggestions for AP Test Takers:
- Do the 2012 FRQ problems & review their Grading Criteria & solutions
- Go over the Multiple Choice Practice test with the answers and try to identify subtle ways those problems try to get at fine details (or trick you)
i.e. "if (1 < x < 10)" is not valid
it should be "if (1 < x && x < 10)"

Gridworld, part 4
Do Part 4's Excercises: 1, 2, & 3 OR KingCrab due Friday, May 10th.
Critter notes / Gridworld API
Others: Finish Jumper due by Fri, May 3rd & Snake Project is due Tue, May 14th.
Final AP CS Exam Review:
- Multiple Choice Questions?

Our AP CS Exam Review pages - Super PowerPoint
More Resources for the AP & UW in HS Exams (at the bottom) & our Schedule!

APCS & UW in HS Review Day and Ice Cream Social, May 4th at UW! remember to register.
Wed & Thur
5/1 & 5/2
Summative AP CS Multiple Choice exam

AP CS Final (Mock AP) Multiple Choice exam
Quick Reference Only: Please bring your paper copy of Quick Reference for 2013 Exam handed out with the earlier testing.

Help & Review after school - Thursday JJ & I will be available for questions & help!
Mon & Tues 4/29 & 4/30 (50 min periods)Assessment of Creating Programs in Java

Free Response Question (FRQ) portion of our AP CS Final Exam (Mock AP)

(Wed/Thur - Multiple Choice portion of our AP CS Final Exam, Mock AP)

Garfield Victorious at PSCSTA Programming Contest - congratulate Rebecca, Ryan & Franklin (Team RRF)!
Free Response Question (FRQ) portion of our AP CS Final Exam (Mock AP):
- Monday: Create code for 2 of 3 FRQ problems (50 min)
- Tuesday: GridWorld Problem to solve.

Thur & Fri
4/25 & 26 Block
Review Material for AP CS exam + Search, Sort & Complexity

Next Week - our Mock AP/Final Java Exam:
- Free Response Questions Mon/Tues
- Multiple Choice Test Wed/Thur


Gridworld, part 4
Do Part 4's Excercises: 1, 2, & 3 OR KingCrab (Done? try Ant Farm)
Critter notes / Gridworld API due Fri, May 3rd.

Others: Finish Jumper due by Fri, May 3rd & Snake Project is due Thur, May 9th.

NOTE: UW Engineering Discovery Days this Friday & Saturday at UW!
Take a look at the Arrays Quiz and Puns & Jokes from the Arrays Quiz

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?
- Specific areas or topics?

Our AP CS Exam Review pages - Super PowerPoint
More Resources for the AP & UW in HS Exams (at the bottom) & our Schedule!
Tues & Wed
4/23 & 24 Block
Abstract & Casting in Polymorphism

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

Others: Finish Jumper due by Fri, April 26th & Snake Project is due Thur, May 9th.

Try some Recursion Mysteries

Review our: AP CS Exam Review pages
Resources for the AP & UW in HS Exams (at the bottom) & Updated Schedule!

Super & Polymorphism Summary! (includes Abstract Class & Methods!)
Polymorphism (& its Mysteries) (finish)
PDF File Handout: Polymorphism & its Mysteries
Videos:
- Polymorphism & Casting
- Using super

Quick Summary of Recursion
More Recursion Mystery Details & Practice

Another Topic: Number representations: Decimal, Binary, Hexadecimal, & Octal
On Line Summary
Couple Practice-It's: binary1 / binary2
Monday 4/22Polymorphism & their Mystery Problems

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

Others: Finish Jumper due by Fri, April 26th & Snake Project is due Thur, May 9th.

Class Objects & ArrayLists Quiz Make Up (about 1.5 hours): After school Tuesday 23rd - if you cannot make this dates, you need to make arrangements with Mr. Bergquist today.
Dates through the AP & UW in HS Exams
Polymorphism (& its Mysteries) (start)
PDF File Handout: Polymorphism & its Mysteries

Polymorphism Mysteries: (find more under polymorphism or inheritance)
- Polymorphism Mystery: FooBarBazMumble
- Another Inheritance Mystery

A great AP Review: UW 142 Class Summary with Videos, Lectures & Labs
- Please pick up a Permission Slips for Spring Programming Contest (April 27th)
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/12
Have a Great Spring Break!!
Creatin' Critters in GridWorld
Sign Off on Jumper be ready with your test to swiftly demonstrate all traits.
Do Part 4's Exercises: 1, 2, & 3 OR KingCrab

Snake - Due Thur, May 9th - after the AP Exam.

+ Pick up a Practice AP CS Multiple Choice test to work on over break - see details from the 9th...

Read: Gridworld, part 4
Do Part 4's Excercises: 1, 2, & 3 OR KingCrab
Critter notes / Gridworld API
Wed & Thurs
4/10 & 11
Quiz on Classes, Arrays and ArrayLists\

Finish up: Jumper - should be done by Friday so we can go on to...
On to: Gridworld, part 4
Quiz on Classes, Arrays and ArrayLists

+ Pick up a Sample MC Test if you are not going to be in class on Friday.
Tuesday 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.
Java File JumperRunnerTest.java

Signed off?
- Start the Snake Project .
- Study Review for upcoming Quiz on Wed & Thurs.
- Sorry we are skipping Fifteen puzzle. Try it if you like.
PDF File PreConditions & For-Each Loops
AP Resources: (to use over break)
+ A Practice AP CS Multiple Choice test will be given to you on Friday
+ AP Exam Sheet (new version): GridWorld Official Quick Reference (PDF)
+ AP CS Tips
+ Previous Free Response questions linked here
+ For your programs, here's an even Better reference: Gridworld API

Continue work on Jumper and the Snake Project.
Monday 4/8Create an Object driven game in GridWorld.

Signs off of your Jumper along with your testplan (instructions or Client programs) to swiftly demonstrate success. Please be prepared.
Java File JumperRunnerTest.java (This will Test Most Cases, but I want to see YOUR test strategy)

Done? Study Review for upcoming Quiz on Wed & Thur April 10 & 11th.
And start work on the Snake Project

Microsoft 343 Execs will be here on Friday during lunch!
APCS & UW in HS Review Day and Ice Cream Social, May 4th at UW! it's a great after Prom activity! Mark your calendar & register.

Shopping Cart is back - review my comments
Arrays Quiz couple areas:
- Booleans & DeMorgan's Law
- Array Mystery
+ I'll have a Practice Multiple Choice AP CS Exam for you at the end of the week to enjoy over break.

For those who need some help, Jumper Guidance:
Java File JumpStart.java
Java File SingleJumpStart.java
Friday 4/5Create an Object driven game in GridWorld.

Please make sure take our: T-Shirt & AP CS Survey

Complete: Jumper - create a set of bugs & objects to demonstrate all it's characteristics clearly (before asking for sign off) Due Monday 4/8

End of 10 Week (Quarter) Grades today - check the source
Work on the Jumper.

Done? Start the Snake Project.

Study Review for upcoming Quiz on ArrayLists, classes, interfaces, GridWorld - Wed/Thur April 10/11.. You may also want to reference the Supplemental Videos from previous weeks...
Wed & Thurs
4/3 & 4
(Block)
Extend a Class in GridWorld to create a Jumper.

Sign off's on SpiralBug, ZBug and DancingBug from the second part of the GridWorld case study.
Work On: Jumper - create a set of bugs & objects to demonstrate all it's characteristics clearly (before asking for sign off) Due Monday 4/8

Please take our: T-Shirt & AP CS Survey
Use the: Grid World API - AP CS Quick Reference Sheet & GridWorld, part 3
Complete: Jumper Due Monday 4/8

Study Review for upcoming Quiz on Wed/Thur April 10/11.

Preview: Snake Project.
Tuesday 4/2Extend a Class in GridWorld to create a Jumper.

Sign off's on SpiralBug, ZBug and DancingBug from the second part of the GridWorld case study.
Start work on: Jumper
GridWorld, part 3
Work on: Jumper - create a set of bugs & objects to demonstrate all it's characteristics clearly (before asking for sign off)

Monday 4/1Extend a Class in GridWorld to create a Jumper.
Complete SpiralBug, ZBug and DancingBug checked off from the second part of the GridWorld case study.
Start Part 3 Exercise: Jumper

Feel free to discuss the requirements for Jumper with Classmates
Read GridWorld, part 3
Work on Part 3 Exercise: Jumper
- create clear test plan to demonstrate it is fully working.

NOTE: Monday, Mr. Bergquist is out today - please help each other out on your bugs.
Friday 3/29Create new Bug Actors in GridWorld.
Complete and get SpiralBug, ZBug and DancingBug checked off from the second part of the GridWorld case study.

NOTE: Monday, Mr. Bergquist will be out - please help each other out on your bugs.
Complete SpiralBug, ZBug and DancingBug in second part of case study.

Read:GridWorld, part 3
Then Start the Part 3 Exercise: Jumper
Wed & Thur
3/27 & 28 (Block)
Follow Inheritance and interact with SuperClasses. Set up the GridWorld Case Study, build your first bug!

Make sure to get GridWorld running in your Work Space TODAY.
Get Sign off On: Weight class lab practice. Due today.
Then Work on SpiralBug, ZBug and DancingBug in GW, part 2 of case study. Demonstrate them as a single runner.

What's next? GridWorld, part 3, of course. (this is a little denser to read, take your time)
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.

Make up Quiz on Arrays, 2nd half period.
Tuesday 3/26Define your Objects Sort Order in Lists using the Comparable interface and compareTo method.

Get Sign off On: Weight class lab practice.
When done, review the GridWorld Introduction
Set up GridWorld in your APCS workspace & JGrasp.
Read the first part of the GridWorld case study...
Inheritance & Super (continued)
PDF File Handout: Inheritance & super (Superclass)
GridWorld Introduction

NOTE: Make up Quiz will be given after school Wednesday or during your class Block period (Wed or Thur).
Monday 3/25Define your Objects Sort Order in Lists using the Comparable interface and compareTo method.

Complete & Sign off on: Weight class with a Comparable Interface lab practice. (Make sure you have completed all 4 Practice-its on ArrayLists)

Done? Start to Set up GridWorld in your APCS workspace & JGrasp.
- Read the GridWorld, part 1 of the case study
Inheritance & Super (start)
PDF File Handout: Inheritance & super (Superclass)
GridWorld Introduction

Programming Contest Registration Opens Today, 25th March at 9:30am, make sure your team gets registered.

Extra Practice on Interfaces: Playing Cards
Friday 3/22Assessment on Arrays.

After the Quiz, work on Work on: Weight class with a Comparable Interface lab practice. - note clarifications in the assignments. Thanks
Quiz - Arrays!
Wed & Thur
3/20 & 21
(Block)
Create a common Interface for Objects.

Work on: Weight class with a Comparable Interface lab practice.

Sample Comparable & compareTo code to solve Weight class:
Java File StudentL.java
Java File StudentLClient.java

Supplementary Videos:
- Interfaces
- Implementing Comparable Interface
Interfaces
PDF File Handout: Interface & compareTo

Sample Interface code:
Java File Shape.java
Java File Circle.java
Java File Rectangle.java
Java File ShapeTest.java

Comparable & compareTo Method: making your Objects Sort Order!
Try them out creating the Weight class with a Comparable Interface lab practice.
Tuesday 2/19Build a collection of Object Classes using ArrayLists to create a functioning project.

Turn It In here your Project 8: Shopping Cart - includes 4 Objects plus your ShoppingTest.java that fully exercises your test methods.

Complete ArrayList Practice - will be checked in Practice-It later today. Also due today.
Quiz Moved to Friday - OK?
Women In Technology Field Trip, Monday April 1st! See Mr. Bergquist for permission slips today.

Finish your Project 8: Shopping Cart and ArrayList Practice

Done? Try these Interview-style brainteasers
Monday 3/18Build a collection of Object Classes using ArrayLists to create a functioning project.

Sign off for the ArrayList Practice (PDF version)

Work on Project 8: Shopping Cart - due Tuesday 3/19. (PDF Version) Turn It In HERE

Done? Random sentence generator
Arrays Quiz (i.e. Array Mysteries, logic and Array Programs including 2D Arrays) this Wed & Thur 3/20 & 21
Complete ArrayList practice & Project 8: Shopping Cart - due Tuesday 3/19
Programming Contest Registration Opens next Monday, 25th March at 9:30am - be ready
- UW is planning a Review for AP & our Final Exam, what date is better the evening of Friday 5/3 or Saturday 5/4 midday (the exam is the following Tuesday)?
Tues & Thur
3/12 & 14
Block - Lab Day!
Build a collection of Object Classes using ArrayLists to create a functioning project.

Complete the ArrayList Practice (PDF version) for our Next Project...
Work on Project 8: Shopping Cart - due Tuesday 3/19. (PDF Version) Turn It In HERE

Make sure you filled out this Exit Survey on ArrayLists - Thanks!
Check your grade in PowerSource - through Car & Student make sure all are signed off.

Work on: Project 8: Shopping Cart - due Tuesday 3/19. (PDF Version)

It's HSPE testing week NOTE: The CS Lab will be open during morning HSPE testing Tuesday - Thur (8-10:30am) to work on home work (not Reddit or games). Mr. Bergquist will be available for help too!
Monday 3/11Build a collection of Object Classes using ArrayLists to create a functioning project.

Complete the ArrayList Practice (PDF version) for our Next Project...
Start on Project 8: Shopping Cart - due Tuesday 3/19. (PDF Version)

BONUS: CS programs in Washington State Details - shared from Tahoma HS.
Take out some paper & start our Warm Up (Slide 2)
Review & Questions on: Project 8: Shopping Cart - due Tuesday 3/19. (PDF Version)
Object Oriented Design for the Shopping Cart Project

Java File ArrayListFun.java Sample Solution from last week's Class demo's.
It's HSPE testing week NOTE: The CS Lab will be open during morning HSPE testing Tuesday - Thur (8-10:30am) to work on home work (not Reddit or games). Mr. Bergquist will be available for help too!
Thursday & Friday
3/7 & 8 (Block)
Create ArrayLists and use their methods to solve problems.

Continue work on the ArrayList Practice (PDF version) for our Next Project...
Done? Start on Project 8: Shopping Cart - due Tuesday 3/19.

End of class: Fill out this Exit Survey on ArrayLists
Warm Up: Array Mystery (on next Quiz)
ArrayLists - Demo Code, Slide 19+
Java File ArrayListFunStarter.java requires...
text file: Raven2Stanza.txt
PDF File Handout: ArrayLists

Continue work on the ArrayList Practice (PDF version) for our Next Project...
Preview: Project 8: Shopping Cart - due Tuesday 3/19.

Supplemental Videos:
- Removing from an ArrayList
- Adding to an ArrayList of Integers
Tues & Wed (short)
3/5 & 6
Build robust Object Classes, demonstrating constructors, encapsulation, and exceptions. And then Create ArrayLists and use their methods to solve problems.

Sign off DUE for both Car AND Student Objects: Creating the Car & Student Object Classes Practice

Start the ArrayList Practice (PDF version) for our next Project 8: Shopping Cart - due Tuesday 3/19.

Note: the Java Syntax Sheet above is updated to include ArrayLists.
And don't forget to reference the Class Object Concepts Sheet
AP Exam Sign up is coming! Let's discuss
Summer Opportunities at UW!!
Finish up our Object Class & Client creation assignments in the lab.

Then start the ArrayList Practice for our Next Project. (PDF version)
Preview: Project 8: Shopping Cart - due Tuesday 3/19.

NOTE: Arrays Quiz (Array Mysteries, Boolean Zen logic and Array Programs) - Next Week - Block Period.
Monday 3/4Build robust Object Classes, demonstrating constructors, encapsulation, and exceptions.

Finish up both Car AND Student Objects: Creating the Car & Student Object Classes Practice - last day for full credit is Tuesday, March 5th.

Start the ArrayList Practice for our Next Project...
ArrayLists Start
PDF File Handout: ArrayLists

Start the ArrayList Practice for our Next Project...

Wed & Thur plus Friday
2/27 & 28 + 3/1
Build robust Object Classes, demonstrating constructors, encapsulation, and exceptions.
Start work today on Car and Student Objects: Creating the Car & Student Object Classes Practice

Complete Sign offs:
- 2 D Arrays' :ASCII image processing
- Your portion of the Epicenter/Glitter Bomb Client program using your Point Object Class.
What Most Schools Don't Teach
from code.org

Start work today on Car and Student Objects: Creating the Car & Student Object Classes Practice

Done? Start:
ArrayLists
+ ArrayList Practice
Tuesday 2/26Build robust Object Classes, demonstrating constructors, encapsulation, and exceptions.

Should start on these new Object today: Creating the Car & Student Object Classes Practice

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.
Continue Creating the Car & Student Object Classes

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

Complete & demonstrate PointTest.java & the Epicenter/Glitter Bomb Client program using your Point Object Class (Point due today, Epicenter due Tuesday)
(Finish 2D Arrays image when done: Due Wed/Thur.)

Start Creating the Car & Student Object Classes
Arrays of Objects & Null (updated)
Object Encapsulation, ToString method & this keyword
Adding Exceptions


Summary: Object Class Review Slides

Start Creating the Car & Student Object Classes
Friday 2/22
Create an the Point Object class and use it to solve the Epicenter problem.

Complete & demonstrate Your Own Point Object Class (use PointTest.java to verify.)
Then Build the the "Epicenter" solution using your Point Object (at the bottom of the Your Own Point Object Class sheet.
(When done finish up 2D Array ASCII image processing.)
Complete & demonstrate Your Own Point Object Class (use PointTest.java to verify.)
Then Build the the "Epicenter" solution using your Point Object (at the bottom of the Your Own Point Object Class sheet.

In Lab:
Arrays of Objects & Null (updated)
Wed/Thur
2/20 & 21
Block
Create an Object class with State (fields) & Behavior (methods) and add its Constructor for initialization.

Create Your Own Point Object Class

Get ASCII image processing signed off soon.
Introducing the Object Class!
Object Class
Constructor

PDF File Handout: Object Class & Constructor

Create Your Own Point Object Class worksheet.
Java File PointTest.java to verify your Java Object Class
Tuesday 2/19Store information in 2D Arrays and create methods to display & manipulate them.
Complete our DNA Project Survey
And work to finish the: ASCII image processing


Done: Try:
Link Simple Tic-Tac-Toe
Link Magic Squares
Java File ArrayOver.java
2D Arrays Slides
Complete: ASCII image processing

2 Microsoft Opportunities: Summer Internship & 3 Day Builder Boot Camp
Wed
2/13
(1.5 hour Block)
Use array data structure and its methods to solve the DNA project.
DNA project - Turn In Project Here. - Due TODAY, well actually Thursday 14th Feb.
Note: School closes after lunch on Thur 14th and Mr. Bergquist has a meeting from 2:45-3:30pm on Wed 13th - hopefully the lab can stay open.
2D Arrays
Java File ArrayOver.java

Complete your DNA project - Due today/Thur
Then start: 2D Array ASCII image processing

Tuesday 2/12Use array data structure and its methods to solve the DNA project.
Work on the DNA project (Turn In Project Here.) - Should be done by Wednesday, 13th Feb, but open till 11:59pm Thur 14 Feb
(Remaining DNA Structured Diagrams should be complete & ready for sign off.)
Work on the DNA project Due Thursday Feb 13/14th.
Go to the lab... (short lecture on Wednesday)
Monday 2/11Use array data structure and its methods to solve the DNA project.
Complete & get Sign Off on BOTH due today:
- Structured Diagram for the DNA project
- Assertion exercises from last week
Work on the DNA project (Turn In Project Here.)
Note: School closes after lunch on Thur 14th and Mr. Bergquist has a meeting from 2:45-3:30pm on Wed 13th - hopefully the lab can stay open.
Having Output go to a File?
References:
- Writing to files
- Using the Java API

THIS WEEKEND: CODEDAY February 16-17th - 24 hour hack-a-thon! Organized by two Garfield Students!!
Thur & Friday
2/7 & 8
Block
Use Assertions to better understand how your code will execute.
Sign Off on Structured Diagram for the DNA project - Due by Monday 11th Feb.
Work on the DNA project (Turn In Project Here.) - Due Thur 14 Feb

Done? Take a look at: Coding Bat
Assertions
(Sorry, 2D Arrays next week)
Partner Exercise: Do 2 and show to me:
Assertion 1
Assertion 2
Assertion 3
Do this before resuming DNA project.
Wednesday 2/6
(30 min)
Structure Diagraming & Java API for file output.

Make sure your 1st Semester grades look good in the Source if you have missing sign offs, it's your job to get them to me - partial credit is available.

- Finish Structured Diagram for the DNA project
- Work on the DNA project
1st Semester clean up:
- Final / Mock AP Exam Results: please self-check Exams & Grade Mappings
- Go check your grades in the source let me know of any discrepancies.
- if you have missing sign offs, it's your job to get them to me - partial credit is available.
- let me know any discrepancies immediately.
Tuesday 2/5
Approach structuring your methods for a project by creating a Structure Diagram & use the Java API to find coding methods & syntax (for file output).
First Create your Structured Diagram for the DNA project, Due by Monday 11th Feb.
Work on the DNA project Due Thursday Feb 14th (before Break).
Questions on the DNA project?
For your Reference, File output: Using the Java API: Writing to files (see if you can figure this out from the API & instructions).
Monday 2/4
Approach structuring your methods for a project by creating a Structure Diagram & use the Java API to find coding methods & syntax (for file output).

First Create your Structured Diagram for the DNA project, Due by Monday 11th Feb.

Work on the DNA project Due Thursday Feb 14th (before Break).
Note: Mr. Bergquist will NOT be available after school next week Wed nor Thur, Feb 13 or 14th, to help.
Breaking down a program: Drawing out the structure of the Baby Names Project.
Applying CS to help Scientists, our example: The DNA project
Create your Structured Diagram for the DNA project, Due by Monday 11th Feb.
For your Reference, File output: Using the Java API: Writing to files (see if you can figure this out from the API & instructions).

**ANNOUNCEMENTS**
- STEM Out! for young women interested in STEM is Saturday, Feb. 9th!
- CODEDAY February 16-17th - 24 hour hack-a-thon! Organized by two Garfield Students!!
- Microsoft has announced its summer 2013 internship program for high school students.
Wed / Thur
1/30 & 31
Block
Final Assessment of Semester material, through ArraysFirst Semester Final (30 Points): 15 Multiple Choice (MC) & 3 Free Response Questions. (1H 50Min) (Sample MC's)
- Grading will be based on the AP Exam Grading scale with approximately a 5 or 4 = A, 3 = B, 2 = C, 1 = D/E.
- Java Syntax Reference, Version 4
Tuesday 1/29Time to Review for the Semester Final, through Arrays
Please use it wisely:
Mid-Term Review Material:
- Java Slide Summary
- Review Labs & Practice-It's
- Sample Multiple Choices

- Summary of Text Resources: presentations, Videos and some sample code (from Roosevelt's AP class notes)
Data Traversals to Compare and Contrast
(& review for the Midterm):
Java File HowToTraverse.java
data required: TheRaven.txt
We will go over the code at the left in lab.

Monday 1/28Using Boolean's effectively in a program
Try these Boolean Multiple Choice Problems - good review of logic and doing MC problems. Gives correct answers and reason if you fail.
Booleans & DeMorgan's Law

Supplemental Video:
- Boolean Zen
Friday
1/25
Use Arrays to transform data & solve problems
Sign off on (Due Today for full points):
- Array Practice Sheet (first)
- Arrays as Parameters Worksheet

Done all the practice-it! problems? Try Coding Bat
Grade your Peers:
Grab a Red pen and grade another team's Arrays Group Warm Up:
- Just the first "Price is Right" problem
- Determine if their code works properly
- Write clear supportive comments and corrections
- Exchange papers and discuss results.
Wed/Thur 1/23 & 24
Use Arrays to transform data & solve problems
- Finish up & Sign off on Array Practice Sheet (first)
- Continue on: Arrays as Parameters Worksheet
Both of these sheets are Due by Friday, 25th January.

Done? Take a look at: DNA project Due in February (next semester) we still need to go over file output and will be doing Structured Diagram for this project (more details Friday).
PDF File Arrays Group Warm Up

Mid-Term Review Material:
- Java Slide Summary
- Review Labs & Practice-It's
- Sample Multiple Choices

- Summary of Text Resources: presentations, Videos and some sample code (from Roosevelt's AP class notes)

- Looking for a couple more students for Garfield teams for PLU Programming Contest - Sat, Feb 2nd, talk to me.
Tuesday 1/22
Use Arrays to transform data & solve problems
- Finish up & Sign off on Array Practice Sheet (first)
- Continue on: Arrays as Parameters Worksheet
Both of these sheets are Due by Friday, 25th January.

Due: Corrections on Quiz for ReGrade - 50% points gained with max of 18/22.

Arrays for Tallying
HistogramStart.java (Data: midterm.txt)

Details on:
- STEM Out! Saturday, February 9, 2013 - for girls interested in computer science & technology, sponsored by Amazon.com & PSCSTA at UW. (pdf)
Friday 1/18Manipulating the values of Arrays to solve problems
- Finish up & Sign off on Array Practice Sheet (first)
- Continue on: Arrays as Parameters Worksheet
Both of these sheets are Due by Friday, 25th January.
Please use this starter Code for these two Deck of Card methods (4 & 5) in our Arrays as Parameters Worksheet:
Java File PlayCards.java

Mid-Term Review Material:
(moved up to Jan 23 & 24 entry.
Thursday 1/17Understand the AP Exam & our Semester Final format. Exercises: Manipulating the values of Arrays to solve problems

Finish up & Sign off on Array Practice Sheet (first)
Start work on: Arrays as Parameters Worksheet
Both of these sheets are Due by Friday, 25th January.

Quiz Corrections for ReGrade are due by Tuesday, 22nd Jan - 50% points gained with max of 18/22.
AP CS Syllabus, with guidelines for late projects
Explanation of the AP CS Test vs. our Semester Final
The AP Exam: 40 Multiple Choice (MC) & 4 Free Response Questions (3 Hours)
- Details & Course Description (Exam details page 16) Don't try these samples yet..
- Grading Guidelines
- Quick Reference
First Semester Final: 15 Multiple Choice (MC) & 3 Free Response Questions. (1H 50Min) (Sample MC's)
- Grading will be based on the AP Exam Grading scale with approximately a 5 or 4 = A, 3 = B, 2 = C, 1 = D/E.
- Java Syntax Reference, Version 4
Monday & Tues
1/14 & 15
Manipulating the values of Arrays to solve problems

Finish up & Sign off on Array Practice Sheet (first)
Start work on: Arrays as Parameters Worksheet

NOTE: Lab will be open Wednesday morning 8-10:30am during EOC testing for class help & work time (no playing games).
Guessing Game Grading
Return Quiz & discuss Regrade options. (Mon 3rd/Tue 6th)
Complete: Arrays by Reference presentation
Start on: Arrays as Parameters Worksheet

Supplemental Video:
- Array Mystery
- Array Traversal
Friday 1/11Creating and passing Arrays

Work on Array Practice Sheet (first)
+ Last day for full credit on Contest practice problems.

Done? Check this out: Search the IMDB Top Films (using File Scan):
Java File IMDB.java
Text File imbd.txt
Warm Up: Java FileOopsArrays.java
Arrays as Parameters

Java File Sample ArrayExamples.java

Please make sure you completed our Baby Names Project & Class Survey - Thanks
Wed & Thur
1/9 & 10 (Block)
Basics of creating and using Arrays

Start Array Practice Sheet (first)
Please complete the Baby Names Project & Class Survey - Thanks

+ Quiz for students who missed it before break
Arrays, Part I
PDF File Handout: Arrays

Work on: Array Practice Sheet (first)

- Interested in competing in the PLU Programming Contest - Sat, Feb 2nd at Pacific Lutheran University? See Mr. Bergquist.
Tuesday 1/8Scanning files and single Lines of file input to solve Project 6: Baby Names

DUE: Project 6: Baby Names Today - Turn In Here
Sign off on 6 Contest practice problems checked off

Done? Go over the Checklist for the Baby Names Project
Then please help guide fellow students on their project without writing code for them.
Checklist for the Baby Names Project - please review it carefully.

Sample Java Code to find a line with a name:
Java File DemoFileRead.java
(this is what I went over with some students on Monday)
Monday 1/7
Welcome Back
Scanning files and single Lines of file input to solve Project 6: Baby Names
- Sign off on Contest practice - DUE Tuesday 1/8 along with...
- Turn In Here for Project 6: Baby Names due Tuesday 1/8/2013. (Full Details see: 12/12 entry below)

NOTE: Wed/Thur: Quiz for students who missed it last year after presentation Arrays presentation.

Done: Try some of the PLU Programming Contest 2012 Practice Problems
What do you remember?? Resources:
- File input with Scanner
- Line-based file input
Shall we solve finding the line based on the input name?
Java File DemoFileReadStarter.java (more later)

Announcing the PLU Programming Contest - Sat, Feb 2nd at Pacific Lutheran University.
Friday 12/21Scanning files and single Lines of file input to solve Project 6: Baby Names
- Finish up Contest practice
- Turn In Here for Project 6: Baby Names due Tuesday 1/8/2013.
Any Questions on: Project 6: Baby Names??

Have a Great Winter break!!
Wed & Thur
12/19 & 20
(Block)
Assess knowledge of String Methods, while loops & logic.
Quiz on material through Strings
use: Updated Java Syntax Sheet!
Tue 12/18Scanning files and single Lines of file input to solve Project 6: Baby Names

- Finish up Contest practice
- Review for quiz (12/19& 20) on your own.
- Work On Project 6: Baby Names Due Tuesday 1/8
On Quiz (Wed & Thur): Strings, Returns and Input Scanner (about 20 points):
- Expressions: Strings & Logic (And & Or)
- If/else simulations (mystery)
- Several Methods that Return values - a couple return strings!
- One User Input Scanner Method to write
Practice Problem Review for our quiz:
- String Expressions
- if/else simulation
- Method returns Strings
Mon 12/17Scanning files and single Lines of file input to solve Project 6: Baby Names

UPDATES:
- Baby Names can be turned in by Tuesday, Jan 8th for full credit, prefer you finish before break. So Prioritize for Quiz...
- Fixed all the links to the Practice Problem Review for our quiz (12/19 & 20)
3th Period: UW BioEngineering demos with Deep Hathi and his team from UW BioEngineering: http://depts.washington.edu/bioe/

6th Period: See Friday 12/14... continue on that work.
Friday 12/14
Happy Hobbit day!
Scanning files and single Lines of file input to solve Contest Problems

Do 6 file reading problems from the: Contest practice
Then:
- Review for quiz (12/19& 20) on your own.
- Start Project 6: Baby Names Due Tuesday, Jan 8th
Fix the Code Java File DoubleCounterBroke.java (pr51.dat)
Java File Starter.java - template to help solve these problems

Questions? Project 6: Baby Names Due Tuesday, Jan 8th
Wed & Thursday
12/12 & 13
(Block)
Scanning files and single Lines of input to solve Contest Problems

Continue: Do 6 problems reading file input from the: Contest practice
Done?
- Review for quiz (12/19& 20) on your own.
- Start Project 6: Baby Names Due Tuesday, Jan 8th
6th Period: UW White Hat Hacking & Security exploration with Franziska Roesner. See: http://news.cs.washington.edu/2012/08/07/car-hacking/

PDF File Project 6: Baby Names Due Tuesday, Jan 8th
Text File names.txt
Text File names2.txt
Text File meanings.txt
Java File DrawingPanel.java
Tuesday 12/11Scanning a single Line of input to simplify reading from a File

Continue: Do 6 problems reading file input from the: Contest practice

You are allowed to resubmit Guessing Game: Project 5 till Friday 12/14 for full credit. (Turn it in here) If you don't need to correct it, you will be awarded an extra point.

Please review: Project 6: Baby Names will discuss on block.

For Programming Competition: Java 6 Documentation download page
Most common Internal Errors found for Birthday Project - why they are not good and how to fix them (in class only, see Mr. Bergquist if you missed this.) Project Correctness Checklist

Line-based file input
PDF File Handout: File Input with Scanners (same sheet)

Supplemental Video:
Token-Based Processing line based data
Monday 12/10Reading input from a File using Scanners
Do 6 file reading problems from the: Contest practice

- Last day for sign off for full credit on Strings Lab Practice - Pig Latin & Caesar Cipher.

Our Schedule through break:
- Wed 12/12: end of 15 week grades (will not include Guessing Game)
- Thur 12/13: 6th period White Hat Hacking presentation
- Sat 12/15: Programming Contest at UW
- Mon 12/17: 3rd period UW BioEngineering demos
- Wed & Thur 12/19 & 20: Quiz through strings (Quiz Practice)
- Fri 12/21: Project 6: Baby Names project due, but will be accepted Tuesday 2/8 for full credit.
Java File TemperaturesAvoidError.java data: weather.txt and weather2.txt
File input with Scanner (finish)
Do 6 file reading problems from the: Contest practice

Java FileNextLineIssue.java (next() & nextLine() issue)

Upcoming:
- Quiz on Thursday Dec 20th, these Quiz Practice is highly encouraged.
- Preview: Assignment 6: Baby Names
Friday 12/7Reading input from a File using Scanners

Do at least 6 from the: Contest practice - focus on reading data from files>.

For Programming Competition:
- Java 6 Documentation API download page
- Programming Permission Slip To Mr. Bergquist by Monday, Dec 10th please.
File input with Scanner
PDF File Handout: File Input with Scanners

CS Week Local Activities want to sign up for any additional presentations??
Wed & Thur
12/5 & 6
(Block)
Using Fencepost solutions, while loops, and pseudo-random numbers to create a Guessing Game: Project 5, (DUE Thursday).

Turn in your completed Guessing Game: Project 5

+ Please fill out this online Exit Ticket on While loops, Fenceposts and previous topics at end of period.

Done: Start doing 6 problems from the: Contest practice
PDF File File input with Scanner
PDF File Handout: File Input with Scanners

Example: first problem of the April 2009 contest: Coded Pr2dot1.java (data file: pr21.dat)
Tuesday 12/4Using Fencepost solutions, while loops, and pseudo-random numbers to create a Guessing Game: Project 5, (due Thur 6th Dec).

Work on Guessing Game: Project 5, Turn it in here.
All for loops can be while loops, let's try it with this code:
Java FileFor2While.java

Monday 12/3Using Fencepost solutions, while loops, and pseudo-random numbers to create a Guessing Game: Project 5, (due Thur 6th Dec).

Get signed off on: Strings Lab Practice - Pig Latin & Caesar Cipher - should be done so you have time to work on the project

- Work on Guessing Game: Project 5, (due Thur 6th Dec).
wu code: FormatingPrintf.java
How do we get only one decimal value for the "Guesses/game" of Guessing Game?
- Can we do it with Math.round()?
Formatting text with printf
- Java printf quick reference (couldn't find it in the API)
Friday 11/30Using Fencepost solutions, while loops, and pseudo-random numbers to create a Guessing Game: Project 5, (due Thur 6th Dec).

Get signed off on: Strings Lab Practice - Pig Latin & Caesar Cipher

Are you on a team yet for the Programming Competition? Get a Permission Slip from Mr. Bergquist
Done? Do some Contest practice - we will be doing these next!
Fix the Code at: S:\embergquist\ReadOnly\TronLines.java
Questions on Project 5: Guessing Game
Code Sample from the While loops presentation:
Java File StringsFencePostExamples.java
Java File more: SentinelExample.java
Java File RandomRanger.java
Supplementary Video:
Sentinal Loops
Wed & Thurs
11/28 & 29
Block
Lab: Using String methods & the char type to solve text problems
Lecture: Learn about Fencepost conditions & solutions, using while loops, and creating pseudo-random numbers.


Lab work to complete the Strings Lab Practice so you can start working on the project soon.
Fenceposts, While loops & Math.random()
PDF File Handout: Fenceposts, While loops, & Random()
Code samples from today available Friday
Link Introducing Project 5: Guessing Game (20 Points) - Due Thursday, 6th Dec
Tuesday 11/27Using String methods & the char type to solve text problems

Work on: Strings Lab Practice
Lab Time for Strings!
Link Preview Project 5: Guessing Game (20 Points) Uses While Loops, we will go over Block Day.
Monday 11/26Using String methods & the char type to solve text problems

Done? 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)
Preview: Project 5: Guessing Game
wu: WarmUpStrings01.java
Work on: Strings Lab Practice

+ Please fill out this online Exit Ticket on Strings and previous topics at end of period.

Supplementary Video:
Strings
Wednesday 11/21
Early release
Using String methods & the char type to solve text problems
Start: Strings Lab Practice

Monday is last day for full credit on: (check all complete)
- Math & Scanners Lab Worksheet
- Returns & if/else Conditionals Lab Worksheet
Due Dates for Lab exercises review.
Strings! Presentation (finish)

+ Register for the Programing Competition
Tuesday 11/20Using String methods & the char type

Strings Lab Practice

Java File Sample Code: BabyNamer.java
Warm Up: Method Declarations
Strings! Presentation (start)
PDF File Handout: Strings
Java FileGangstaNameStart.java .

Events are listed on our Home Page. Register for the Programing Competition
Monday 11/19 Imagine UImagine U!
Wed, Thurs & Friday
11/14, 15 & 16
Using Returns, Conditionals (if/else) & Cumulative Algorithms to solve problems: Birthday

Due Date Changed to Friday: Project 4: Birthday -
Turn in Project 4 here
(Note: CS Lab closes at 3pm on Friday)

Done? Try out Manufactoria, do more Practice It! problems, OR start early Strings Lab Practice, first read Strings Slides.
Warm Up / Example:
Java File DemoCumulSumAvg2.java

Optional: if you would like to use a copy of the Java Textbook for the year, see Mr Bergquist. We have several new copies.
Tuesday
11/13
Using Returns, Conditionals (if/else) & Cumulative Algorithms to solve problems: Birthday
Finish up: Returns & if/else Conditionals Lab Worksheet
Then work on: Project 4: Birthday Due Thursday Nov 15th. Turn in Project 4 here
+ Please fill out this online Exit Ticket on Advanced If Returns & Cumulative Sum at end of period.
Programming Contest, Saturday Dec 15th!
Register in Teams of 3:
- $24 registered with payment postmarked by Friday, Nov 23
- $30 by Mon, Dec 10.
Friday 11/9Using Returns, Conditionals (if/else) & Cumulative Algorithms to solve problems: Birthday
Finish up: Returns & if/else Conditionals Lab Worksheet
Then work on: Project 4: Birthday Due Thursday Nov 15th. Turn in Project 4 here
Advanced If Returns & Cumulative Sum (Factoring finish)
Style Guidelines Review for: Project 4: Birthday Due Thursday Nov 15th.
Wed & Thurs
11 7 & 8
(Block)
Using Cumulative Algorithms to solve problems
Work on: Returns & if/else Conditionals Lab Worksheet
Then Start: Project 4: Birthday Due Thursday Nov 15th.

Microsoft Visit Sign Up: Wed November 14th after school in 115- talk to Microsoft Executives about how you use technology.

Supplementary Videos:
- Cummulative Sum
- Factoring if/else
Java File Warm Up: If Returns & Max/Min values
Q&A: Project 4: Birthday Due Thursday Nov 15th.
Advanced If Returns & Cumulative Sum (continue)
Starter code Java File DemoCumulSumAvg.java

More Sample Code:
Java File CondReturnsSums.java

Tuesday 11/6
Using AND & OR logic and Cumulative Algorithms to solve problems

Complete: Returns & if/else Conditionals Lab Worksheet
Review: Project 4: Birthday Due Thursday Nov 15th.

Done? Try out Manufactoria or do more Practice It! problems.
Warm Up: Solve Logical Expressions on the...
PDF File Handout: for Advanced If & Cumulative Sum
Advanced If Returns & Cumulative Sum (continue)
Starter code Java File DaysInMonthDemo.java

Review: Project 4: Birthday Due Thursday Nov 15th.
Monday 11/5Use conditionals to return result using AND & OR logic

End of the Quarter. Check the Source & make sure all your Lab worksheets are complete through the Graphics with Loops Practice It problems
You should be signed off on Math & Scanners Lab Worksheet today.
Continue work on: Returns & if/else Conditionals Lab Worksheet
Review: Project 4: Birthday Due Tuesday Nov 13th.
Discussion: Professional Behavior in the Lab
Advanced If Returns & Cumulative Sum (start) - this will help with the Returns & if/else Conditionals Lab Worksheet
PDF File Handout: for Advanced If & Cumulative Sum

IGNITE field trip to blink for anyone 6th December
Thur & Friday
11/1 & 2
Block
Assess skills using Math methods, Parameters & Graphics


Continue work on: Returns & if/else Conditionals Lab Worksheet
+ Please turn in Exit Ticket on Returns & Conditionals.

Last Reminder: deadline is Sun Nov 4th (Date Extended) for NCWIT Aspirations in Computing
Quiz on all through DrawingPanel and Math (no Scanner)

Returns & Conditionals (if/else) (finish)
Java File BMI.java
Supplemental Video: Nested if/else
Wed 10/31
Halloween!
Shortened
Return values from a Method and use Conditionals: if/else.
Get sign off on all past Lab Worksheets
Start Returns & if/else Conditionals Lab Worksheet
Returns & Conditionals (if/else) (start)
PDF File Handout: for Returns & Conditionals
Tuesday 10/30Using Math Methods to make calculations and Scanners for gathering input.

Complete & Sign off on: Math & Scanners Lab Worksheet

Start: Returns & if/else Conditionals Lab Worksheet
Grade your solutions for: Quiz Practice Homework Assignment
Upcoming Quiz (Thur & Fri) Q&A (through Math, Parameters & Graphics)

Monday 10/29Using Math Methods to make calculations and Scanners for gathering input.
Complete & Sign off on:
- Math & Scanners Lab Worksheet
Complete the Quiz Practice Homework Assignment for grading tomorrow.
More on Scanners & Math Methods: warm up code to fix.
Java FileMathAndScanFixed.java (Solution)

Anyone turning in Cafe Wall late, please talk to Mr Bergquist.

Supplemental Videos Scanner
Friday 10/26
(Purple & White)
Shortened period
Using Math Methods to make calculations and Scanners for gathering input.

Project 3: Café Wall Now Due Friday, 10/26, Turn It In Here WORKING NOW!

Complete: Math & Scanners Lab Worksheet
Next Quiz Nov 1st & 2nd (I believe) on: Parameters, Graphics, Loops, & Math Returns (no Scanners). Open Notes.
Quiz Practice Homework Assignment - complete to be scored in class on Tuesday, 30th October.
Wed & Thur
10/24 & 25
Block
Using Math Methods to make calculations and Scanners for gathering input.

Project 3: Café Wall Now Due Friday, 10/26, Turn It In Here - UPDATE: Grade-It submissions were failing on Wed & Thur, They are working now so the due date has been delayed till Friday. Sorry about the inconvenience

Work on: Math & Scanners Lab Worksheet
- Please turn in your Exit Ticket on the Handout. Thanks.
Returns: Math & Scanners(finish) (wu)
PDF File Handout: for Math Returns & Scanners
Sample Code:
Java File MathScannerTrial.java
Java File Scan10Tokens.java
Tuesday 10/23Start using Math Methods to make calculations.
Start: Math & Scanners Lab Worksheet

Work on Project 3: Café Wall Due Thur, 10/25, Turn It In Here
Returns: Math & Scanners(start)
PDF File Handout: for Math Returns & Scanners
Monday 10/22Creating scalable graphics using for loops.
Final sign off on Parameter Practice, Starting Graphics Drawings, and Squares Practice It Exercises. Due Today, so you have time to work on...

Work on Project 3: Café Wall Due Thur, 10/25, Turn It In Here
Time to work On Project 3: Café Wall
Friday 10/19Creating scalable graphics using for loops.
Please make sure you are added to this period's class for Garfield HS AP CS 2012 in Practice It! from UW - Sign off on your three sequential problems (10 Classroom Points, due Monday 22 Oct): Exercise 3G.5: SquaresA, Exercise 3G.6: SquaresB, Exercise 3G.7: SquaresC
If you have difficulty use this Worksheet

Start work on Project 3: Café Wall (Turn It In Here)

If done early, try additional Chapter 3 and 3G problems in Practice It! See if you can get a high score.
Questions on: Project 3: Café Wall Due Thurs 25th Oct
Thursday 10/18
(Short Block)
Creating scalable graphics using for loops.
Get Signed off on Parameter Practice Lab Worksheet and Starting Graphics Drawings
Complete the three sequential Practice It! from UW Problems (10 Classroom Points, due Monday 22 Oct): Exercise 3G.5: SquaresA, Exercise 3G.6: SquaresB, Exercise 3G.7: SquaresC
If you have difficulty with Practice It, use this Worksheet

Done? Work on Project 3: Café Wall (Turn It In Here)
Scale the Car from slide 6 of Graphics Part 2, with starter code: ScaleTheCar.java. Volunteers?

Preview: Project 3: Café Wall Due Thurs 25th Oct

Java File GraphicsParameters.java
Supplement: Parameterized Graphics Video
Tuesday 10/16Creating graphics using for loops.

Do these three Practice It! from UW Problems (they are a sequence, 10 Classroom Points):
- Exercise 3G.5: SquaresA
- Exercise 3G.6: SquaresB
- Exercise 3G.7: SquaresC
If you have difficulty accessing Practice It, use this Graphics with Parameters Worksheet
Graphics loops slides (wu)
Graphics Part 2
PDF File Handout: for Loops creating Graphics
Java File DemoParameterizedGraphics.java

Deadline is approaching for NCWIT: Aspirations in Computing - Wednesday, 31st October
Monday 10/15Creating graphics with DrawingPanel.
1) Make sure you finish 1-3 on the Parameter Practice Lab Worksheet. 3rd period can get signed off by Lane.
2) Finish up your: Starting Graphics Drawings - Worth 5 Classroom Points, due Tuesday, 16th Oct. You can later use this for your "Doodle" part of the next Project!

Make sure you are signed up for Practice-It:
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 2012
3) Solve Self-Check 3.3 Parameter Mystery to confirm it works for you - this will be checked in Practice-It
4) Try more problems for practice - see if you can get a high score!
Lab time to work on:
- Parameter Practice Lab Worksheet (1-3)
- Starting Graphics Drawings
Feel free to look ahead using Loop in the Graphics presentation and try them in your drawings!

Mr. Bergquist will be out, so please help each other!
Wed & Thur
10/10 & 11
(Block)
Creating graphics with DrawingPanel.
Assigment: Starting Graphics Drawings - Worth 5 Classroom Points, due Tuesday, 16th Oct.

Make sure you have completed the registration for Practice-It from WU (details below)

Note: Mr. Bergquist will be out on Monday and you will be continuing on your Starting Graphics Drawings make them look good and please help each other out!

Graphics (PDF)
Java File DrawingPanel.java Must be copied to your Java code folder/directory, DO IT TODAY!

Java File GraphicsPrimer.java
Supplement: Basic Graphics Video
Tuesday 10/9Using Parameters & obeying Scope.
Get checked off on Parameter Practice Lab Worksheet 1-3 first priority, then the rest.
Survey Results...
Return 1st Quiz
Continue work on Parameter Practice Lab Worksheet
Monday
10/8
Parameters & Scope.
Start: Parameter Practice Lab Worksheet Prioritize 1-3.

Please fill out our AP CS One Month Survey - I appreciate your feedback and insights.

Part II of your Rappin' Lines from Song - check them out.
Slides: Review of Scope
Java File ScopeTest1.java
Parameters (finish)
Java File ScopeTest2.java

Link Parameter Practice Lab Worksheet

Supplemental Video:
Parameter Mystery
Friday
10/5
End first
5 weeks
Basics of Parameters.

Complete: Parameter Mystery Worksheet on back of Note Handout: Parameters - with your table.
Parameters Presentation (start)
PDF File Note Handout: Parameters with Parameter Mystery Worksheet (back) - complete with table.

REMINDER: UW in the HS deadline is next Thursday, 11th October.


Wed & Thur 10/3 & 4 (Block)Assess your knowledge of Expression, Variables, Methods & for Loops.
Quiz Today covers: Println, Method calls, Expressions, basic loops and Nested Loops.
Project 2 due Thursday 4th Oct! - Project 2: Space Needle
Turn It In Here

Done? Read Holding a Program in One's Head (reload page a couple times if it does not come up)
Then do a bunch of Practice It! problems! Please make sure to up an account.
Quiz today
Then finish up Project 2: Space Needle Due Thursday.

- If you would like to borrow a copy of the Building Java Programs text, ask Mr Bergquist.
Tuesday 10/2Using nested loops & Class Constants to draw Complex Scalable images.
Work on Project 2: Space Needle
Turn It In Here - Due Thursday.

Done, read Holding a Program in One's Head and do a bunch of Practice It! problems! Or help out a classmate...
Go over Song Solutions and how it relates to grading Criteria for:Project 2: Space NeedleReview Criteria for Grading

Monday 10/1Using nested loops & Class Constants to draw Complex Scalable images.
Work on Project 2: Space Needle
Turn It In Here by Thursday 4h October. (Note: Same day as our first Quiz)

Done? Review for the Quiz:
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.

You can try Light Bot or Picobot
Ziggurat Warm Up
Presentation: Steps to create a Ziggurat figure (PDF)
PDF File Note Handout: Build a Ziggurat, Scalable Complex Figure
Java File ZigguratDemo.java

Quiz Block Day Wed (3rd) & Thur (6th): What's on it Any questions?
Thursday & Friday
9/27 & 28 Block
Using nested loops & Class Constants to draw scalable images.
Finish off the checks for: Expressions & Loops Lab Worksheet & Complex Figure Exercise
Then get going on: Project 2: Space Needle? (due 4th Oct)

In Lab Demos:
- Starter:Scaling Inverted Pyramid
- Pick another? from these Sample Loop

Please set up an account in: Practice It! from UW and Sign up for our Garfield class: CS - AP CS - 2012 Per 3 or 6. Try out exercises for Chapter 2. See who can get a high score this year!!
Link Your Song Verses, part I!
Questions on: Project 2: Space Needle? Due Thursday, Oct 4th.
jGrasp Demo!! (jGrasp Tutorial)

Java code of Complex Shapes from our examples:
Java File ComplexFigures.java
Java File Mirror.java
Tuesday 9/25 & Wed 9/26 (Short period)Using nested loops & Class Constants to draw scalable images.
Take Home Class packet for your parents/guardians to review and reply.
Get checked off on: Expressions & Loops Lab Worksheet - should be done (due) today.

Work on: Complex Figure Exercise
Introducing: Project 2: Space Needle Due Thursday 4th October.
Our first Quiz will be on Block Days Oct 3rd & 4th.

EXTRA: Sample Loop Results to try
Java File NestedLoops.java sample solutions.
Monday 9/24Using nested loops to draw scalable images.
- Finish up: Expressions & Loops Lab Worksheet (sign off in the next day)
- Start the Complex Figure Exercise.

Done: Try creating these images using loops (just for practice, not sign off.)
Warm Up: Java File WarmUpSept272011.java
UW in the HS: College credit for AP CS, forms & fees due Thursday, 11th October.

Supplementary Material:
- Lab 2: Expressions, Variables, and Loops A self-paced lab exercise.
Friday 9/21Use nested loops to draw scalable images.
Finish up: 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

Announcing: NCWIT Aspirations in Technology competition - all women in CS should consider applying.
Wed & Thurs
9/19 & 20
(Block)
Project 1 - Song due Thursday! Turn it in
NOTE: Song Error Warnings found

Work On: Expressions & Loops Lab Worksheet

Done or need a break? Try Picobot
Nested for Loops (PDF)
Complete Expressions & Loops Lab Worksheet

Supplemental Video:
Nested for Loops
Preview for Friday: Complex Figure & Class Constants presentation
Tuesday 9/18Using simple for Loops.

Continue: Expressions & Loops Lab Worksheet
for Loop (PDF)
PDF File Note Handout: for Loops

Supplemental Video: for Loops
Monday 9/17Solving Expressions in Java & creating Variables types.
1) Correct the code: Receipt.java to compute correctly
2) Continue on Expressions & Loops Lab Worksheet

Project 1: Song (10 Points) - You can Turn it in here (Due Thur, Sept 20th)
Turn In will only work if you completed our AP CS Class Survey last week, if not take it immediately.
Expressions & Variables
PDF File Note Handout: Expressions & Variables
Java File Receipt.java
Continue: Expressions & Loops Lab Worksheet
Supplemental Video: Variables & Assignments
Friday 9/14Solving Expressions in Java & creating Variables types.
1) Finish up: Static Methods & Decomposition Lab Worksheet (most are done)

Make sure you have taken our AP CS Class Survey by today.
Questions on Project 1: Song? Due 9/20
Expressions & Variables
PDF File Note Handout: Expressions & Variables
Start: Expressions & Loops Lab Worksheet
Supplemental Video: Expressions
Wed & Thur 9/12 & 13
(Block)
Mastering Println & Decomposition using Static Methods. About our Coding Conventions & first Project.
Work on & start sign off on: Println, Static Methods & Decomposition Lab Worksheet
- Take our AP CS Class Survey please.
PDF File Coding Conventions & Project Logistics Slides
Link Our AP CS Coding Conventions
Link Project 1: Song(10 Points) Due 9/20
Later...
PDF File Expressions & Variables

Tuesday 9/11Mastering Println & Decomposition using Static Methods.
Sign Off on BakeMoreCookies Decomposition
Work on: Println, Static Methods & Decomposition Lab Worksheet (last day for full credit: Sept 20th.)
Warm Up Example: Java File StaticEcho.java
PDF File Presentation (con't): Drawing complex figures with static methods
Java File Figures1.java
PDF File Println, Static Methods & Decomposition Lab Worksheet
Supplemental Video: Methods
Monday 9/10Begin using Println, Comments & Static Methods.
1) Make sure "HelloWorld" working
Java File Hello.java
2) Decompose BakeSomeCookies.java into a few static methods to produce the same output.
Java File BakeSomeCookies.java
3) Fill out the "Exit Ticket: on the back of the Note Handout: Lesson 1: Println, Comments, & Static Methods - put your name on it and turn in TODAY.
PDF File Presentation: Println, Comments, & Static Methods
PDF File Note Handout: Println, Comments, & Static Methods

Java File StartToday20110912.java
Java File BakeSomeCookies.java

Start Println, Static Methods & Decomposition Lab Worksheet (last day for full credit: Sept 20th.)
Friday 9/7Compile and Run your first Java program.
Get the Hello.java below running using jGrasp - after ward try adding some more text lines to print out.
Java File Hello.java
PDF File Slides: Programming, Java
Java File Hello.java
Thursday 9/6Understand details about the AP CS class. Familiar with our Classroom Guidelines.Key Details of the AP CS Syllabus (pdf format)

HR Training on our Corporate Classroom Standards:
PDF File Computer Science Classroom Guidelines
Wednesday 9/5Welcome to AP CS. Learn what this class is all about.PDF File AP CS Syllabus (pdf format)

* 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.