Computer Science 120
Introduction to Programming

Spring 2011, Siena College

Lecture 5: Centering Objects; More Conditionals; Defining Classes
Date: Tuesday, February 3, 2011

Agenda

Lecture Assignment 5

Due at the start of class, Tuesday, February 8.

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 5, Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.

  1. BDM Exercise 3.4.1, p. 71.
  2. BDM Exercise 3.4.2, p. 72.
  3. BDM Exercise 4.8.5, p. 116.
  4. BDM Exercise 4.8.7, p. 117.
  5. BDM Exercise 4.8.8, p. 117.

Examples