Computer Science 120
Introduction to Programming
Spring 2012, Siena College
Lecture 16: More Loops and Active Objects
Date: Tuesday, March 20, 2012
Agenda
- Announcements
- Exam 2 coming up on the evening of April 2 (less than 2 weeks!)
- Do your Lab 6 (loopy drawing) demos
- Lab 7 preview (and be prepared for a warm lab room...)
- Project 3 begins
- Back to the Pong example: adding a "tilt"
- The VisibleImage object
- Multiple active objects: clouds that produce snow
- More about the static keyword (see also Chapter 8 of BDM)
Lecture Assignment 16
Due at the start of class, Thursday, March 22.
Please submit answers to these questions
either as a hard copy (typeset or handwritten are OK) or by email to
jteresco AT siena.edu by the start of class. Please use a clear subject line
when submitting by email (e.g., CS 120 Lecture
Assignment 16, Joe Student). We will discuss these
questions at the start of class, so no late submissions are
accepted.
- BDM Exercise 7.11.5, p. 212 (5 points). You may do
this on paper or in BlueJ, your choice.
- BDM Exercise 8.6.3, p. 225 (2 points).
Examples