Ed Harcourt


CS140 Syllabus - Class Schedule

Day Class Date Topic Notes Homework
1 Thu-27-Aug Using Java as a calculator StdIn and StdOut. Declaring integer type and double type variables. Variables declarations and mathematical expressions and precedence. Review fahrenheit to celsius program. Review reading from the keyboard using StdIn and writing to the console using StdOut.
2 Tue-1-Sep Making change Review the program that makes change; converting a decimal number to an integer. Review how the Math.round() and Math.pow()(see homework) function works. Homework 1 due next class.
3 Thu-3-Sep Java graphics Intro to Java Graphics Lab. The Picture, Graphics, and Color classes and related methods (commands). Review today's lab and Java graphics commands.
4 Tue-7-Sep Java methods, parameters, class vs method variable scope, simple animation. Ten minute quiz Tuesday. Review the program we developed in class. New methods include Util.sleep(sec) and creating a new color. Homework 2
5 Tue-8-Sep Looping Replicate an image horizontally, diagonally, vertically. Review today's program on a moving particle.
6 Thu-10-Sep More looping examples Study for Quiz Review today's lab. Homework 3 due Tuesday.
7 Tue-15-Sep The Gambler's Ruin. The if-statement. Plotting a line graph. Review the Gambler's Ruin program.
8 Thu-17-Sep Exam 1 Study Guide Exam 1 Tuesday Feb 17 No homework. Study for exam.
9 Tue-22-Sep Exam 1
10 Thu-19-Feb
  • A little trigonometry refresher and drawing a clock.
  • Another "random walk"? The lost hiker.
Homework 4 due Thursday Feb 26 Review Sierpinski's Triangle, and clock program. Short quiz Tuesday.
11 Tue-24-Feb The Drunkard's Walk (Brownian Motion). Review two-dimensional random walk program we developed today. Reminder: clock assignment due Thursday. Quiz today
12 Thu-26-Feb Image processing New looping construct; the for-loop. New Picture methods getPixel and setPixel. Pixel methods getRed, getGreen, getBlue. Opening a picture using new Picture constructor. Using a string variable to hold the path. Creating the photographic negative, increasing red, decreasing red, switching colors. Review black-and-white (grayscale) program and how we use two nested for-loops to examine every pixel.
13 Tue-3-Mar Shrinking and enlarging a picture How can you shrink a picture so that it is half the height and half the width? How can yo enlarge a picture so it is double the width and double the height? Review the shrink and enlarge methods.
14 Thu-5-Mar Rotating an image, and copying a smaller image into a larger image. Rotating an image 90-degrees right, left, and 180 degrees. Creating a mirror image. Review the copyInto and rotateRight methods. Homework 5
15 Tue-10-Mar Steganography Read the Wikipedia entry on Steganography. Review the steganography example developed in class.
16 Thu-12-Mar Exam 2 review Exam 2 Study Guide Review the steganography example.
17 Thu-26-Mar Exam 2
18 Tue-31-Mar A Particle Simulator Pay careful attention to the structure of the program and the methods being used. Review particle simulator for the next class.
19 Thu-2-Apr More particle simulation Adding a second particle and collisions Quiz Tuesday. Review particle simulator with collision and bouncing off of a wall. Homework 6
20 Thu-7-Apr A Particle Class Adding lots of particles doesn't scale well so we help ameliorate the problem by abstractuing a particle into itws own class, then we can create many particle objects. Quiz Tuesday. Review particle class.
21 Tue-14-Apr Arrays An array is a special kind of data type that can hold many values at once. Review array example
22 Tue-14-Apr Hiatus: Sorting Sort an array of integers. This will be related to our particle simulator when we try and bounce a particle off of every other. Review sorting program
23 Thu-16-Apr An array of particles. Completely generalize our particle simulator to have as many particles as we want without duplicating code. Review Array of Particles. Homework 7
24 Tue-21-Apr Web Design Basic HTML Elements Review HTML elements
25 Thu-23-Apr Web Page layout (using tables) HTML Tables Review HTML layout using tables.
26 Tue-28-Apr Final exam Review The Hi-Low Guessing Game
27 Thu-30-Apr Final exam Review Finding the particle that is closest to the center.
28 Tue-4-May Final Exam Review Review topics.