Outline for February 29, 2012
Overview of bottom-up design
Take existing pieces and combine them
Keep building up until you have solved the problem
Example: compute binomial coefficients for (1 +
x
)
n
Need to read user input [
bc-1.py
]
Need to compute factorials [
bc-2.py
]
Need to print polynomial with integer coefficients [
bc-3.py
]
Combine [
bc.py
]
Monte Carlo method for approximating π (random tosses onto a dart board)
Need to generate where dart toss winds up [
]
Need to determine if it is in unit circle [
mc-2.py
]
Need to read user input [
mc-3.py
]
Combine [
mc.py
]
Other approaches
Prototyping and spiral development
Agile development
A PDF version is available here.
ECS 10, Basic Concepts of Computing
Winter Quarter 2012