Outline for January 18, 2012

Reading: §2, 3
  1. Software development
    1. Analyze the problem
    2. Determine specifications
    3. Create a design
    4. Implement the design
    5. Test/debug the program
    6. Maintain the program
  2. Example: program to make change, version 1 [change1.py]
    1. Comments
    2. Break down change into quarters, dimes, nickels, and the remainder is pennies
    3. Function input() gets input as a string from user
    4. Function int() converts data to a floating point number
    5. Assignment to variable; evaluate right hand side first
    6. print statement
    7. Now a while loop until user says to quit
      1. Logical tests: ==, !=, >, >=, <, <=
      2. Loop variable go_on initialized to enter loop
      3. Loop variable reset at end
  3. Variables
    1. What they are
    2. Names, identifiers
    3. Legal, illegal names
  4. Type converter functions int, float, str
  5. Expressions
    1. Operation, operand
    2. Operators +, -, *, /, //, %, **
    3. String operators +, *

A PDF version is available here.
ECS 10, Basic Concepts of Computing
Winter Quarter 2012