Computer Science 112
The Art & Science of Computer Graphics

Spring 2016, The College of Saint Rose

Lecture 18: Programmed Replication
Date: Monday, April 4, 2016


Agenda

Lecture 18 Assignment

Due at the start of class, Wednesday, April 6.

Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT strose.edu by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 112 Lecture 18 Assignment, Mary Smith). 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:

Examples