CS130 - 3/4/2011

  1. news - technology and nature
  2. People and fire
  3. Four steps to programming:
    1. Understand the problem; what must the program do
    2. Decide on the algorithm: *how* the program will do that

      An algorithm is a step-by-step procedure to solve some problem (or set of problems) where each step is explicitly specified and requires no judgment, that is guarenteed to terminate in a finite number of steps.

    3. Write code -- implement the algorithm in a programming language
    4. Debug the code!
  4. Lab 7 sorting coins
  5. Task: program Ruby to face east if there are more coins at the corner she is at than in her bag, or west otherwise
  6. Quiz!
  7. Lab demos