Lesson 13: Designing software

Outline:

  1. Questions?
  2. Modeling probabilities
    • flipping a fair coin
    • flipping an unfair (weighted) coin
  3. Top-down design
    • overall goal
    • example: rolling dice: Exercise 1
    • aside: visualizing results with Matplotlib: Exercise 2
  4. Project work time: try top-down design for yourself!

Explore after class:

  1. Modeling probabilities
  2. More practice with top-down design

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)