
80 Data Structures Using C
Output specifications
n In what order and format the outputs values will be produced?
n What types of values to be produced with what spacing i.e., decimal spacing, significant digits, etc.
n What main headings and column headings to be printed on the output page.
2.3.2 Stepwise Refinement
We know that if there is even a small logical error in a program, the compiler cannot detect it. The year
2000 problem (Y2K problem) is a glaring example of this type. Thus, an algorithm requires a very careful
design, especially pertaining to a large and complex problem.
In order to design an algorithm, the programmer must adopt ...