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 |
2/2, 2/3 |
HelloWorld &
Command-Line Arguments
Ice Breaker
|
HelloWorld
NameAge (Solution)
NextYear (Solution)
|
HelloWorld
NameAge
NextYear
SquareOf
SquareSwap
|
1 |
2/4, 2/5 |
Bring your textbook
to this precept!
Data Types Jigsaw (Solution)
|
Eggsactly
PercentScore
Distance
ThreeSort
|
Eggsactly
PercentScore
PizzaCalculator
AboveAverage
Distance
ThreeSort
|
2 |
2/9, 2/10 |
Conditionals & Loops
Debugging Tips
|
RollDie,
RollLoadedDie
PowersOfTwo,
FiniteSum
FivePerLine
BuggyFivePerLine1
BuggyFivePerLine2
BuggyFivePerLine3
BuggyFivePerLine4
|
Flag PowersOfTwo FiniteSum AgeChecker SquareCensus Quadratic ModularSqrt
|
3 |
2/11, 2/12 |
Arrays
|
ArrayRef
HowMany
Distinct
MysteryArray
Birthday or
BagOfBalls
SecretMessage
|
Distinct Reverse NOrdered NSwap Commonest
|
4 |
2/16, 2/17 |
StdIn, StdDraw, & Command Line Tutorial &
Cheatsheet
|
MaxMin
Students,
students.txt
BouncingBallDeluxe,
TennisBall.png,
pipebang.wav
|
MaxMin Students Powers Squish Means
|
|
2/18, 2/19 |
No precept. Extra office hours available for N-Body. |
5 |
2/23, 2/24 |
Functions
|
Maxi
Reverse
DiamondTile
Perimeter
|
Positive Find Boxed Summer Yarra
|
6 |
2/25, 2/26 |
Recursion & Recursive Graphics
|
Factorial
NestedCircles
Htree
|
Kettles Factorial TextFractal BinarySum Evaluate ZeroSum
|
7 |
3/1, 3/2 |
Exam Review
|
Mini Written Exam
(Solutions, Animated Version of Q3 Recursion)
|
|
8 |
3/3, 3/4 |
Number Systems
|
Number Systems Worksheet
(Solutions)
|
|
9 |
3/8, 3/9 |
TOY Programming |
TOY Cheatsheet
TOY Programming Worksheet
TOY Programming Solutions
| |
|
3/10, 3/11 |
No precept. |
spring break
Please fill out our Mid-Semester Feedback Form! |
10 |
3/22, 3/23 |
Using Data Types
|
Stopwatch,
PlayTime
Charge,
FourChargeClient
ColorSeparation,
peppers.jpg
Provided as reference:
Picture API,
Color API
|
FourChargeClient IsPalindrome ComplementaryDNA CircularShift GeneFind
|
11 |
3/24, 3/25 |
Creating Data Types:
Object-orienting a bouncing
ball, Ball client
|
Ball,
BouncingBalls
Provided as reference:
BouncingBall
|
Recorder Clicker CountingSort CombinationLock Monomial
|
12 |
3/29, 3/30 |
Performance |
Repeat
|
|
13 |
3/31, 4/1 |
Sorting, More Objects |
Vector
|
Name
Interval
Vector
Lambert
|
14 |
4/5, 4/6 |
Stacks & Queues |
Stacks and Queues |
QMerge LineEdit
|
15 |
4/7, 4/8 |
Symbol Tables
|
Symbol Tables
ST.java,
FrequencyTable,
mobydick.txt |
FrequencyTable ReverseLookup
|
16 |
4/12, 4/13 |
Binary Search Trees (BSTs)
Regular Expressions (REs) & Deterministic Finite Automata (DFAs)
|
BSTs Worksheet
(Solution)
REs & DFAs Worksheet
(Solution)
|
RegularExercise |
17 |
4/14, 4/15 |
Linked Lists |
CircularQuote |
CircularQuote
MonkeyTraverse
MonkeyAddStart
MonkeyAddEnd
|
18 |
4/19, 4/20 |
P = NP? |
Theory Jigsaw |
18 |
4/21, 4/22 |
Boolean Algebra & Circuits |
Boolean Alg. Worksheet
Boolean Alg. Solution
Circuits Match-up Worksheet
Circuits Match-up Checker
|
19 |
4/26, 4/27 |
COS 126 Jeopardy! |
|
4/28, 4/29 |
No precept. |
Go to any one of the following:
Thur. Apr. 28th, 4:30-5:50pm with Alan Kaplan in Friend 008
Mon. May 2nd, 1:30-2:50pm with Dan Leyzberg in Friend 008
Wed. May 4th, 1:30-2:50pm with Donna Gabai in Friend 008
|
Final Project "Tips & Tricks"
Slides
|