|CS 220 01/ Zelle||Winter 2017|
Chapter 1 Review Questions (pt 1) (due 1/13, class time)
Do T/F questions 1--5 and Multiple Choice 1--3 from pp 33,34. Write answers on paper suitable for hand-in at the start of class.
Craps Simulation Design (due 1/16, class
Complete the design for the craps simulation program discussed in class today. The input to the program is a number, n, that tells how many games of craps are to be simulated. The program then simulates n games following the rules of craps (see rules here.).
Your design must have the following functions: main, printIntro, simNGames, simOneGame, rollForPoint, rollDice. For each of these functions you should provide a function header, and appropriate pre-- and post conditions. Your design should be detailed enough that you could turn it over to another class member to implement.
craps.py (due 1/20, midnight)
Write a craps simulation program that conforms to the specifications given in the design here. This program should be turned in on Socrates (Manhattan VC).