Computer Science 112
The Art & Science of Computer Graphics

Fall 2015, The College of Saint Rose

Lecture 18: Programmed Replication
Date: Wednesday, November 4, 2015


Lecture 18 Assignment

Due at the start of class, Friday, November 6.

Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 112 Lecture 18 Assignment , Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.

  1. Write a Python loop that prints out the even numbers from 2 up to and including 1000. (5 points)
  2. Write a series of Python statements that computes and prints out the sum of the even numbers from 2 up to 1000 by using a loop similar to the one from the previous question. (5 points)
  3. Write an Ambrosia model that adds a series of 10 cylinders to the scene. (10 points) The cylinders should have these properties: