Lesson 13: Designing software
Outline:
- Questions?
- Modeling probabilities
- flipping a fair coin
- flipping an unfair (weighted) coin
- Top-down design
- overall goal
- example: rolling dice: Exercise 1
- aside: visualizing results with Matplotlib: Exercise 2
- Project work time: try top-down design for yourself!
Explore after class:
- Modeling probabilities
- unfair dice: Exercise 3
- More practice with top-down design
- four of a kind: Exercise 4
- building towards Yahtzee: Exercise 5
What’s next
Upcoming events/assessments:
- CS Bits and Bytes Thursday from 4:30pm-5:30pm in Olin 149: John Clapp ‘91 from Deriva Energy
- Carleton Undergraduate Research Symposium: Friday Oct. 17 from 4:30-5:30pm in the Rec Center
- Homework assignment 5 is all about graphing via Matplotlib and due this Thursday
What you should do now:
- The readings (see below)
- Work on Assignment 5
- Start your project using top-down design, if you haven’t started already, or start to organize your code a bit if you have!
Reading assignment (to be completed by the next class):
- Zelle sections 11.1–11.3 (pp. 333–351)