Caution! You are looking at an out-of-date version of this website from Fall 2015.
To access the current version, click here.

Precepts

The worksheets and code on this page will largely be covered in precept. The recommended exercises and websheets are here for you to practice your skills at home. Websheets are online programming exercises you can write and submit in your browser which give you instant feedback and have reference solutions if you get stuck. We've also created a tool called the Java Visualizer that will animate the execution of any code, showing you exactly what Java does each step of the way.

# DATE TOPICS & WORKSHEETS CODE RECOMMENDED EXERCISES WEBSHEETS
0 9/17, 9/18 HelloWorld & Command-Line Arguments
Ice Breaker
HelloWorld
NameAge (Solution)
NextYear (Solution)
Section 1.1
Exercises: 1-4

Section 1.2
Exercise: 7
HelloWorld
NameAge
NextYear
SquareOf
SquareSwap
1 9/22, 9/23 Bring your textbook
to this precept!

Data Types Jigsaw (Solution)
Eggsactly
PercentScore
Distance
ThreeSort
Section 1.2
Exercises: 4, 6, 9,
13, 16, 20, 25, 30, 34
Web Exercises: 1
Eggsactly
PercentScore
PizzaCalculator
AboveAverage
Distance
ThreeSort
2 9/24, 9/25 Conditionals & Loops
Debugging Tips
RollDie, RollLoadedDie
PowersOfTwo, FiniteSum
FivePerLine
BuggyFivePerLine1
BuggyFivePerLine2
BuggyFivePerLine3
BuggyFivePerLine4
Section 1.3
Exercises: 7, 8, 13, 15, 20
Web Exercises: 1, 2
Flag
PowersOfTwo
FiniteSum
AgeChecker
SquareCensus
Quadratic
ModularSqrt
3 9/29, 9/30 Arrays,
Command-Line
Tutorial & Cheatsheet
ArrayRef
HowMany
Distinct
MysteryArray
Birthday
SecretMessage
Section 1.4
Exercises: 4, 9, 10, 13
Web Exercises: 1, 2
Creative Exercise: 35
Distinct
Reverse
NOrdered
NSwap
Commonest
4 10/1, 10/2 StdIn, StdDraw,
& N-Body Outline
MaxMin
Students
students.txt BouncingBallDeluxe
TennisBall.png,
pipebang.wav
Section 1.5
Exercises: 1, 3, 11, 13, 15
WebExercise: 31
MaxMin
Students
Powers
Squish
Means
5 10/6, 10/7 Functions/Methods
Maxi
Reverse
DiamondTile
Perimeter
Section 1.5
Exercises: 18, 21, 22

Section 2.1
Exercises: 1, 3, 4, 13, 14
Web Exercise: 35
Positive
Find
Boxed
Summer
Yarra
6 10/8, 10/9 Recursion and
Recursive Graphics
Factorial
NestedCircles
Htree
Section 2.1
Web Exercises: 1, 3, 8, 14, 22
Kettles
Factorial
TextFractal
BinarySum
Evaluate
ZeroSum
7 10/13, 10/14 Performance
Practice Mini-Exam
Practice Mini-Exam Answers
Repeat Section 4.1
Exercises 10, 16, 27
8 10/15, 10/16 Dynamic Programming
Sequence Alignment Sheet
Fibonacci
FibonacciDynProg
- Catalan
PartitionCount
Mario
Knapsack
KnapsackBacktrack
9 10/20, 10/21 Using Data Types Stopwatch
PlayTime
Charge
FourChargeClient
ColorSeparation
peppers.jpg
Picture API
Color API
3.1.1, 3.1.6 (Booksite Creative Exer. 3.1.60),
3.1.13 (Booksite 3.1.25),
3.1.14 (Booksite 3.1.30),
Booksite 3.1.14 (answer on p.340)
FourChargeClient
IsPalindrome
ComplementaryDNA
CircularShift
GeneFind
10 10/22, 10/23 Creating Data Types:
Object-orienting a bouncing ball, Ball client
Person.java
Ball, BouncingBalls
BouncingBall (§1.5)
3.2.5, 3.2.11 (Point.java code on Booksite) Recorder
Clicker
CountingSort
CombinationLock
Monomial
11 10/27, 10/28 Number Systems Number Systems Worsheet (Solutions) Textbook Section 6.1 Draft
10/29, 10/30 No precept.
fall break
12 11/10, 11/11 More Objects, Sorting, Guitar Hero Vector.java 3.3.6 (answer in book), 3.3.7 (answer in Vector.java in Booksite 3.3) Name
Interval
Vector
Lambert
13 11/12, 11/13 ADTs, Sorting, Stacks and Queues Stacks and Queues 4.2.4, 4.2.6, 4.3.1, 4.3.3, 4.3.4, 4.3.8, 4.3.9, 4.3.16 QMerge
LineEdit
14 11/17, 11/18 Using Generics &
Symbol Tables
Symbol Tables
Put in same directory:
FrequencyTable.java
ST.java
mobydick.txt
4.4.23, 4.4.36 (Booksite Creative Ex 4.4.5) FrequencyTable
ReverseLookup
15 11/19, 11/20 Binary Search Trees (BST's)
Regular Expressions (RE's) & Deterministic Finite Automata (DFA's)
BST's Worksheet (Solution)
RE's & DFA's Worksheet (Solution)
4.3.23, 4.3.25, 4.3.26, 4.3.27
Web Exer. 4.3.1, 4.3.2
4.4.8, 4.4.9
RegularExercise
11/24, 11/25 No precept.
thanksgiving break
16 12/1, 12/2 Linked Lists CircularQuote Spr13 Exam2 #8 CircularQuote
MonkeyTraverse
MonkeyAddStart
MonkeyAddEnd
17 12/3, 12/4 P = NP? Theory Jigsaw Practice your Theory! (Solutions)
18 12/8, 12/9 TOY Programming TOY Cheatsheet
TOY Programming Worksheet
TOY Programming Solutions
19 12/10, 12/11 Boolean Algebra & Circuits Boolean Alg. Worksheet
Boolean Alg. Solution
Circuits Match-up Worksheet
Circuits Match-up Checker
20 12/15, 12/16 COS 126 Jeopardy!
12/17, 12/18 No precept.
Go to any one of these:
Fri. Dec. 18th, 1:30-2:50pm with Donna Gabai in Friend 006
Tues. Jan 5th, 1:30-2:50pm with Alan Kaplan in Friend 006
Wedn. Jan 6th, 1:30-2:50pm with Dan Leyzberg in Friend 006
Final Project "Tips & Tricks"
Slides