Outline for October 12, 2012
Reading: § 6, 8
Assignment Due: October 12, 2012 at 5:00PM
- Relations
- Operators ==, >, >=, <, <=, ==, \lstinline/!=/
- Precedence: resolved after arithmetic operators
- Connectives: and, or, not
- Indefinite loops
- while [while.py]
- Contrast with for
- break causes program to fall out of loop (works with for too) [loop1.py]
- continue causes program to start loop over immediately (works with for too)
- Program to make change [change.py]
- Integers, floating point numbers, characters
- Difference between integers and floating point numbers
- Character representation and ordering [ord.py]
- Cæsar cipher
- How it works
- Encipher [caesarenc.py]
- Decipher [caesardec.py]
A PDF version is available here.
|
ECS 10, Basic Concepts of Computing
Fall Quarter 2012
|