CSC 160 Fall 2006 - Homework 9
Assigned Dec 5, due SUNDAY Dec 17

Note: Any assignment received after Sunday 12/17 at 11:59pm will receive a grade of zero!

Read the following directions for how to submit your assignments.

Directions
  • Read these directions carefully before starting the assignment.
  • The assignment may be done alone or in pairs using the ideas in the Pair Programming article.
  • You cannot pair up with the same person more than once during the semester.
  • Whenever defining a conditional Scheme function, you must show all eight steps of the Design Recipe introduced in class on Thursday 11/30.
  • Whenever defining any other Scheme function, you must show all six steps of the Design Recipe introduced in class on Thursday 10/5.
  • If you do not fully understand any of the directions above or the questions below, please e-mail me as soon as possible.

    The Assignment
  • Develop an animation that displays a circle that switches colors between green, yellow, and red every second.
  • For extra credit (20 points), have 3 separate circles in the animation, one that is red at the appropriate time, one that is yellow at the appropriate time, and the other that is green at the appropriate time. (Hint: When the light is not red, you should have the outline of a white circle. When the light is red, you should have a solid red circle.)


    Grading Overall Purposes Contracts Data Analysis Examples Skeletons Template Definitions Testing
    Explain the world /5
    Function: next-model /50 /3 /3 /2 /3 /3 /3 /30 /3
    Function: next-view /30 /3 /3 -- /3 /3 -- /15 /3
    Calling big-bang /5
    Calling on-redraw /5
    Calling on-tick-event /5
    Extra Credit /20



    Last Modified: 12/10/06