previous | start | next

## Constants

- Giving symbolic names to constants makes programs easier to read and modify.
- Example: Suppose you switch from 2-liter bottle to half gallon bottles:
  - Must find every 2 in program.
  - Decide if number represents bottle volume, or something else
  - Replace with 1.893 if appropriate.
- Constants mean only changing a program at one location.

previous | start | next