Previous topic | Next topic | Ada Home Page | Index

Program Architecture

Designing the program architecture means deciding what the modules of the program will be.

Designing procedures

Procedures might be recognised as worthwhile modules in either a top-down or bottom-up programming approach.

Top down decomposition

Bottom-up programming

Examples

    clear_screen;
    move_to ( row => 10, col => 20);
    get_integer (num, 1, 10);
    get_integer (val, 0, 100);

Benefits: incremental development, re-use


Alternative architectures

The same basic structure can be implemented in several different ways.

For example, even a trivial program which just reads in and then adds two integers might be structured in the following ways (among others).


Previous topic | Next topic | Ada Home Page | Index
c-lokan@adfa.oz.au / 15 Feb 96