It is a good idea to have an overall design for a program before you begin coding. Top-down design is analogous to an outline of a paper: it describes the function of the program in terms of subprograms. Each subprogram, in turn, is broken down into further subprograms until basic operations are reached.
Example: A payroll program might be designed as:
Contents    Page-10    Prev    Next    Page+10    Index