Summary: Many suggest that modular and object-based design supports reuse and therefore makes it more efficient (easier, faster, ...) to develop reasonable variants of programs. In this assignment, you will extend your simulation from the previous assignment.
Note: Make sure to read the whole assignment before beginning it. In particular, you will need to document the time you spend on the initial parts, so you should make sure to record them.
Collaboration: You may work in groups of up to size four on this assignment. In larger groups, you will need to decide which previous assignment to base your work on. All members of a group are responsible for understanding all work turned in.
We might make our simulation somewhat more accurate by associating three probabilities with each player:
Create a second simulation that uses these probabilities. Again, it should compute the results of 1000 games between the two players, in which the first player always serves first.
If your code is appropriately modular, you should be able to quickly change the rules of your game (yes, I did warn you that I might make this change).
Create four more simulations as follows
It is your responsibility to find rules for ping pong and volleyball. You should document the source of the rules and summarize the rules you are using (and no, neither has exactly the same rules as Racquetball). You should not assume that the rules in my ping pong simulation are accurate.
After making these modifications, it is appropriate to step back and think about your original design and how it simplified or complicated your task. Give a short (few sentence) answer to each of the following (preferably as an HTML document, but plain text is fine, too.)
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Tue Sep 16 08:10:45 1997.
This page generated on Fri Dec 12 12:06:19 1997 by SiteWeaver.
Contact our webmaster at email@example.com