This will be revised and augmented during the semester.
About the assigned readings below: skim the readings before class, read thoroughly soon afterwords.
Thursday exams are called ’Freshman [sic] Quizzes’ and are officially scheduled here.
No homework to submit, but of course you should read actively: read and contemplate some of the exercises, do some in detail as practice.
In lab you will install DrJava and create a directory to hold all your work in this course. It’s a good idea to create a separate sub-directory for each assignment.
no class Mon the 5th (labor day)
Here is a sample program that shows the required format for code you submit for grading.
Here is Deck.java discussed in class.
Here is a design for the plateau problem that we discussed in class on Friday.
Here is StdInOutDemo.java for use in lab.
Here is MonteHallBoth.java we looked at in class, and LongestRun.java like you did in lab.
review slides from Wed.
Thurs Sept 29 exam in E222 from 2:00–2:50pm; Fri exam in lecture
Here is Dragon.java which we might have used in lab.
Here is TabulateAveragesSample.txt for one of the homeworks.
Here are some programs discussed in class: Coupon.java, PlayThatTune.java, PlayThatTuneDeluxe.java, TransposeTune.java.
Here are some data files for playing tunes: Ascale.txt, looney.txt, elise.txt, and freebird.txt.
Here are this week’s lecture slides.
no class Mon (fall recess); Mon schedule on Tues; and no class Fri (inauguration)
A solution guide for the exam was provided in class; it refers to ExamSol.java.
Here is Htree.java with animation, as well as notes on the gcd trace we did in class this Mon: GCDtrace.txt.
Here are slides that animate the stack
EXAM on Thurs+Fri
Thurs Oct 27 exam in E222 from 2:00–2:50pm; Fri exam in lecture
Here is the complete program Percolation.java
Here is a sample lab solution: Conway.java
Here is Potential.java with data files charges.txt and chargesFarAway.txt.
Apropos homework, here is RandKoch_order4.jpg
no class Wed–Fri (Thanksgiving)
Here is UndoTurtle.java which uses this modified version of the book’s Turtle.java as well as TurtleAction.java, TurtleGoAct.java, and TurtleTurnAct.java
Here are the slides: DNinherit.pdf
Here is the nifty hand-crafted UndoTurtleUMLclassModel.pdf
Here’s some code from booksite, section 3.6:
Sample programs Graffiti.java, Squares.java Paint.java, Point.java
Library classes that aren’t in StdLib: Draw.java, DrawListener.java
EXAM Thurs Dec 8 exam in E222 from 2:00–2:50pm; Fri exam in lecture
Here is the homework assignment: MandelApp.pdf
Here are MousablePicture.java, MousablePictureListener.java, which augment the Picture API to include mouse events.
Here is a program which displays the Mandelbrot set in a MousablePicture: MandelMouse3.java and MandelMouse3Listen.java. It shows how a listener can call a method of the main application. Compared with MandelMouse2 which I distributed before, the only change is to make it more clear how coordinates in the picture are transformed (by method transform()) to coordinates in the Complex plane.
Here is a color version of the image, from the booksite: Mandelbrot.java.
I added a solution file to the directory with last Friday’s exam problem: Exam3/SpillTurtleSol.java
Review slides: review115.pdf