Breaking a problem into functions

A big task becomes small ones when each function does one job and has a name that says which, so the main program reads like a plan, and each piece can be written and tried on its own.

From Introduction to Computer Science.