Programming assignment for CPSC 110
Due April 8, 2009

Turn in a program that has two bouncing balls bouncing in the same window. [Many of you have already done something like this, but send me a new copy that includes appropriate documentation. ] For up to 5 extra credit points have the balls change different colors when they bounce off the  edges of the window. For up to 10 extra points have them change color and change speed. For up to 25 extra points, have them change color and speed when they it the edges AND have them engage in that same behavior when they hit each other. Want more points? Do more balls, more special effects, use mixed shapes - circle, triangle, oval.... Impress me.

Write a program that meets the requirements of exercise 11 on pages 161 and 162. For extra credit, don't accept any points for the door and the window that are not in the house. Can you make chimney with smoke coming out as a sequence of solid circles? Can you give the user a choice for the color of the roof or the door??


How can we start?
Take note of a few things.
The width of the door is 1/5 the width of the house and the width of the window is 1/2 the width of the door so it is 1/10 the width of the house.
Thus, we will need to compute the width of the house. 
How do we do that?

The door and windows are rectangles so we'll need to know the points that determine them

The roof is a triangle, so it is determined by three points. Two are already given by the rectangle for the house frame.

When we're ready we can begin a design


# open a window


#have user pick two points for the body of the house


#have use pick a point for the door


#have a user pick a  point for the window


#have a user pick a point for the top of the roof