Assignment 4

Due 11pm Friday, August 4

This program has almost no new concepts, so it should be pretty easy.

Let's write a bouncing ball simulator. We will only bounce the ball in one dimension, but if we illutrate it in a particular way, then we can watch the ball bounce against the left hand side of the screen. Some sample output is:

...........................................................................O
...........................................................................O
..........................................................................O
..........................................................................O
..........................................................................O
..........................................................................O
.........................................................................O
........................................................................O
........................................................................O
.......................................................................O
......................................................................O
.....................................................................O
....................................................................O
...................................................................O
..................................................................O
................................................................O
...............................................................O
.............................................................O
............................................................O
..........................................................O
........................................................O
......................................................O
....................................................O
..................................................O
...............................................O
.............................................O
...........................................O
........................................O
.....................................O
...................................O
................................O
.............................O
..........................O
.......................O
....................O
................O
.............O
.........O
......O
..O
.O
....O
......O
........O
...........O
.............O
...............O
.................O
...................O
.....................O
......................O
........................O
.........................O
...........................O
............................O
.............................O
..............................O
...............................O
................................O
.................................O
..................................O
..................................O
...................................O
...................................O
....................................O
....................................O
....................................O
....................................O
....................................O
....................................O
....................................O
...................................O
...................................O
..................................O
..................................O
.................................O
................................O
...............................O
..............................O
.............................O
............................O
..........................O
.........................O
.......................O
......................O
....................O
..................O
................O
..............O
............O
..........O
.......O
.....O
..O
O
..O
....O
.....O
.......O
........O
..........O
...........O
............O
..............O
...............O
...............O
................O
.................O
..................O
..................O
...................O
...................O
...................O
...................O
...................O
...................O
...................O
...................O
..................O
..................O
.................O
.................O
................O
...............O
..............O
.............O
............O
...........O
..........O
........O
.......O
.....O
...O
.O
O
..O
...O
....O
.....O
......O
.......O
........O
.........O
.........O
..........O
..........O
...........O
...........O
...........O
...........O
...........O
...........O
...........O
..........O
..........O
.........O
.........O
........O
.......O
......O
.....O
....O
...O
.O
O
.O
..O
..O
...O
....O
.....O
.....O
.....O
......O
......O
......O
......O
......O
......O
.....O
.....O
....O
....O
...O
..O
.O
O
O
O
.O
.O
..O
..O
..O
..O
..O
..O
..O
..O
.O
.O
O
O
O
O
.O
.O
.O
.O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O

Good luck!

Boilerplate

Ask me if there are any questions, and remember that elegance counts! peter@cs.uoregon.edu, or simply commenting below will all reach me immediately. Also recommended is coming in to office hours if you have any questions.

Turn It In

Turn your project in using the following form:

What is your student #?
What is your name?
What is your email?
What file would you like to submit?
If you have more than one file in your project, please use an archiving tool to put them all into one archive file. Acceptable archive types are .zip, .jar, .tar, and .tgz.

Please make sure that you provide any README files in plain text. MS Word .doc files are not acceptable. .html, .txt, .ps, .dvi, and .pdf are all acceptable. Really you should just be turning in ASCII text (.txt) files and source code. And for most assignments, just well documented source code.

Comments and Clarifications

The admin should touch /cs/classweb/06U/cis122/4.comment

Questions? Answers!
Valid CSS! Valid XHTML 1.1!