Why learn programming? Programming for the Non-Programmer in Alice 2.2
What is a Computer Program? A set of instructions that tell the computer what to do
Why include Documentation? Part of a program Explanation to others what you were trying to accomplish //show the break through the thin ice if she skates on it
All computer programs are made from a few very simple ideas….
Sequential processing List of instructions
Conditional Execution “ IF”s if , condition then result
Conditional Execution “ IF”s if , then
Conditional Execution “ IF”s if , then
Looping (Iteration) Repeating behavior work until the bell!
Reductionism or Top-Down Design Breaking things up into smaller chucks Clean your room! Make your bed Pick up clothes Put away “toys” Dirty to wash Clean in drawers
Reductionism or Top-Down Design Breaking things up into smaller chucks
Calling a function Compute a result Perform series of steps to get result ? Get phone book Look up “Father Ryan” in F section Find phone number What is the school’s phone number?
Mix & Match as needed!
Think of Chess Only 6 pieces Each moves in simple pattern Chess is complicated game because of all possible combinations of moves!
Learning  HOW TO THINK  about arranging sequence is  probably the of learning to program! most valuable part

Why Programming