CSCI 1300 Computer Science 1: Programming
Spring 2004
Karl Winklmann

 
 

Programming exercises

Monday, January 26, 2004

 
 
 


Project description form | Contents | Schedule and syllabus | Grading policy | People | Programs | MSDOS | Emacs | News archive | Dora (Assignment submission) | www.cplusplus.com | ~main/cs1300/doc/bgi

Just as a check of your keeping up with the course material, here are programming exercises you should be able to do at this point. I suggest you do the ones you are not sure about. (This is not assigned homework, only a chance to make sure you are doing fine.)

Starting from the program done in class last Thursday ...

  1. Let the user control the speed of the bouncing ball.
  2. Let the user choose the color of the ball.
  3. Change the size of the ball as it keeps bouncing, making it smaller until it vanishes.
  4. Make two balls bounce around and end the program when they collide.
  5. Add a second object to the screen, a paddle (drawn as a vertical line) and let the user move it up and down. Let the ball bounce off that paddle.
 


© 2004 Karl Winklmann 5:53 PM, Thursday, April 29, 2004