Caution! You are looking at an out-of-date version of this website from Fall 2016.
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 WEBSHEETS
0 9/15,
9/16
HelloWorld &
Command-Line Arguments
Ice Breaker
HelloWorld
NameAge (Solution)
NextYear (Solution)
HelloWorld
NameAge
NextYear
SquareOf
SquareSwap
1 9/20,
9/21
Data Types Data Types Jigsaw
Eggsactly
PercentScore
Distance
ThreeSort
Eggsactly
PercentScore
PizzaCalculator
AboveAverage
Distance
ThreeSort
2 9/22,
9/23
Conditionals & Loops
Debugging Tips
RollDie, RollLoadedDie
PowersOfTwo, FiniteSum
FivePerLine
BuggyFivePerLine1
BuggyFivePerLine2
BuggyFivePerLine3
BuggyFivePerLine4
Flag
PowersOfTwo
FiniteSum
AgeChecker
SquareCensus
Quadratic
ModularSqrt
3 9/27,
9/28
Arrays HowMany
Distinct
MysteryArray
Birthday SecretMessage
Distinct
Reverse
NOrdered
NSwap
Commonest
4 9/29,
9/30
StdIn & StdDraw MaxMin
Students, students.txt
BouncingBallDeluxe, TennisBall.png, pipebang.wav
MaxMin
Students
Powers
Squish
Means
5 10/4,
10/5
Functions Perimeter or Perimeter
Maxi
Reverse
DiamondTile
Positive
Find
Boxed
Summer
Yarra
6 10/6,
10/7
Recursion &
Recursive Graphics
Factorial
NestedCircles
Htree
Kettles
Factorial
TextFractal
BinarySum
Evaluate
ZeroSum
7 10/11,
10/12
Number Systems Number Systems Worksheet
(Solutions)
8 10/13,
10/14
TOY Programming TOY Cheatsheet
TOY Programming Worksheet
TOY Programming Solutions
9 10/18,
10/19
Written Exam Review Mini Practice Exam
(Solutions)
10 10/20,
10/21
Hamming Assignment
Tips & Tricks
11 10/25, 10/26 Using Data Types Stopwatch, PlayTime
Charge, FourChargeClient
ColorSeparation, peppers.jpg

Provided as reference:
Picture API, Color API
FourChargeClient
IsPalindrome
ComplementaryDNA
CircularShift
GeneFind
12 10/27, 10/28 NO PRECEPT
MANDATORY CLASS MEETING ON THURSDAY 10/27
fall break

Mid-Semester Feedback Form
13 11/8,
11/9
Performance Repeat
14 11/10, 11/11 Sorting, More Objects Vector Name
Interval
Vector
Lambert
15 11/15,
11/16
Stacks & Queues,
Generics & Wrapper Classes
Stacks and Queues QMerge
LineEdit
16 11/17,
11/18
Symbol Tables &
Binary Search Trees (BSTs)
Symbol Tables
ST.java, FrequencyTable, mobydick.txt

BSTs Worksheet (Solution)
FrequencyTable
ReverseLookup
11/22 No Precept
Thanksgiving break
17 11/29,
11/30
Linked Lists CircularQuote CircularQuote
MonkeyTraverse
MonkeyAddStart
MonkeyAddEnd
18 12/1,
12/2
Regular Expressions (REs) &
Deterministic Finite Automata (DFAs)
REs & DFAs Worksheet (Solution) RegularExercise
19 12/6,
12/7
P = NP? Theory Jigsaw
20 12/8,
12/9
Boolean Algebra & Circuits Boolean Alg. Worksheet
Boolean Alg. Solution
Circuits Match-up Worksheet
Circuits Match-up Checker
21 12/13,
12/14
COS 126 Jeopardy!
12/15,
12/16
No precept.
Go to any one of the following:
Fri. Dec. 16th, 1:30-2:50pm with Alan Kaplan in Friend 101
Mon. Jan. 9th, 1:30-2:50pm with Dan Leyzberg in Friend 101
Wed. Jan. 11th, 1:30-2:50pm with Ibrahim Albluwi in Friend 101
Final Project "Tips & Tricks"
Slides