Caution! You are looking at an out-of-date version of this course website from Spring 2015.

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
1 2/3, 2/4 Intro, HelloWorld,
Command-line Arguments
First Precept Activity
First Programs
Assignment Guidelines
Treasure Hunt
HelloWorld
NameAge (Solution)
NextYear (Solution)
Section 1.1
Exercises: 1-4

Section 1.2
Exercise: 7
HelloWorld
NameAge
NextYear
SquareOf
SquareSwap
2 2/5, 2/6 Bring your textbook
to this precept!

Data Types
Data Types Table
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
3 2/10, 2/11 Conditionals and Loops
Debugging
RollDie
RollLoadedDie
PowersOfTwo
Buggy1FivePerLine
Buggy2FivePerLine
Buggy3FivePerLine
Buggy4FivePerLine
Section 1.3
Exercises: 7, 8, 13, 15, 20
Web Exercises: 1, 2
Flag
PowersOfTwo
FiniteSum
AgeChecker
SquareCensus
Quadratic
ModularSqrt
4 2/12, 2/13 Arrays HowMany
Distinct
MysteryArray
Birthday
DiscreteDistribution
SecretMessage
Section 1.4
Exercises: 4, 9, 10, 13
Web Exercises: 1, 2
Creative Exercise: 35
Distinct
Reverse
NOrdered
NSwap
Commonest
5 2/17, 2/18 StdIn, Parallel Arrays,
& N-Body Assignment
Command-line Tutorial
Command-line Cheatsheet
MaxMin
Students
students.txt
Section 1.5
Exercises: 1, 3, 11, 13, 15
WebExercise: 31
MaxMin
Students
Powers
Squish
Means
6 2/19, 2/20 StdDraw, Functions
Functions (Maxi & Reverse)
Maxi
Reverse
DeluxeBouncingBall
laser.wav
pop.wav
earth.gif
Section 1.5
Exercises: 18, 21, 22

Section 2.1
Exercises: 1, 3, 4, 13, 14
Web Exercise: 35
Positive
Find
Boxed
Summer
Yarra
7 2/24, 2/25 Recursion and Fractals
StdDraw and Methods (DiamondTile)
Recursion (Factorial)
Htree
NestedCircles
DiamondTile
Factorial
NestedCircles
Htree
Section 2.1
Web Exercises: 1, 3, 8, 14, 22
Kettles
Factorial
TextFractal
BinarySum
Evaluate
ZeroSum
8 2/26, 2/27 Performance and Sorting:
Repeat Exercise
InsertionTest
Repeat
Section 4.1
Exercises 10, 16, 27
Lambert
9 3/3, 3/4 Number Systems & Bitwise Operators:
Number Systems
Number Systems Answers Booksite 5.1.1, 5.1.16 (~ means complement), 5.1.18 BinarySum
10 3/5, 3/6 TOY
TOY Reference Card
Practice Mini-Exam
TOY Answers
fib.toy
toy.jar (X-TOY)
TOY.java
Practice Mini-Exam Answers
5.3.2, 5.3.6, 5.3.12, 5.4.8, 5.4.9, 5.4.12
11 3/10, 3/11 Hamming Codes
12 3/12, 3/13 Scientific Computing Scientific Computing Questions Scientific Computing Questions Answers
Have a great spring break!

Please fill out this feedback form.
13 3/24, 3/25 Using Data Types:
Charge, Color, Picture Clients
Stopwatch.java
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
14 3/26, 3/27 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
15 3/31, 4/1 More OOP
Stacks & Queues
Guitar Hero Assignment:
OOP Example: Vector
Stacks and Queues
Vector.java 3.3.6 (answer in book),
3.3.7 (answer in Vector.java in Booksite 3.3)
4.3.1, 4.3.3, 4.3.4, 4.3.8, 4.3.9, 4.3.16
Name
Interval
Vector
QMerge
LineEdit
16 4/2, 4/3 BST's & Linked Lists:
Binary Search Trees
Quote
Quote
Binary Trees 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
MonkeyTraverse
MonkeyAddStart
MonkeyAddEnd
Quote
LinkIt
17 4/7, 4/8 Symbol Tables, Generics, &
Markov Model Assignment:
Symbol Tables
FrequencyTable
FrequencyTable.java
ST.java
mobydick.txt
4.4.23, 4.4.36 (Booksite Creative Ex 4.4.5) FrequencyTable
ReverseLookup
18 4/9, 4/10 RE's and DFA's
RE's and DFA's
Challenge for the bored
RE's and DFA's Answers
Fall11 Exam2 #4
Fall12 Exam2 #4
RegularExercise
19 4/14, 4/15 Turing Machines & TSP Assignment
Turing Machines
CircularQuote
Turing machine: java webstart or
jar (run java -jar turing.jar
TM handout solutions
Spr13 Exam2 #8 CircularQuote
LinkIt
20 4/16, 4/17 Theory
Theory Jigsaw
Theory Jigsaw Entries
Theory Mini-quiz
Theory mini-quiz solutions
21 4/21, 4/22 Boolean Algebra & Circuits (Solutions)
Practice Mini-Exam
Circuits Match-up
Circuits Match-up Checker
22 4/23, 4/24 Architecture Review
Architecture (Solutions)
Jeopardy!
Practice Mini-Exam Answers Spr13 Exam2 #7
4/28-5/1: Precepts cancelled

WRITTEN EXAM REPLACES LECTURE ON TUESDAY 4/28

PROGRAMMING EXAM ON THURSDAY EVENING 4/30
Go to any one of these four during Reading Period:
Fri. May 1st, 1:30-3:00pm with Donna Gabai in Friend 006
Mon. May 4th, 1:30-3:00pm with Jonathan Frankle in Friend 006
Tue. May 5th, 1:30-3:00pm with Dan Leyzberg in Friend 006
Wed. May 6th, 1:30-3:00pm with Alan Kaplan in Friend 006
Final Project Tips & Tricks
Slides
Play as Powerpoint to see the transitions