Class 10. Summer 2012

Assignment due by Thursday.

Write a program that produces an animation in a window of at least two ‘bouncing balls’ so that it appears that each shape bounces off the sides of the window and that they also ‘bounce’ off of each other when they collide. Have the balls change color when they ¬†bounce off the ¬†edges of the window. For up to 10 extra points have them change color and change speed on each bounce. Want more points? Do more balls, more special effects, use mixed shapes – circle, triangle, oval…. Impress me.

Discussion problem:

Three numbers are given as input and labeled x,y, and z.

Write an algorithm to find the maximum of the three.

Some review quizzes for Chapters 6, 7 & 8

Comments are closed.