Procedural Programming

?

Procedural Programming

Specification

Understand the characteristics of the procedural and object-oriented programming paradigms, and have experience of programming in each.

Understand the structured approach to program design and construction.

Be able to construct and use hierarchy charts when designing programs.

Be able to explain the advantages of the structured approach.

Programs written in the procedural programming paradigm are formed from sequences of instructions that are executed in the order in which they appear. Procedures like functions and subroutines form parts of the program and can be called from anywhere within the program, by other procedures or recursively.

Recursion - The process in which a block of code that is defined in terms of itself makes a call to itself.

Data is stored in procedural programs by constants and variables. A data structure is said to have a global scope if it can be accessed from all parts of the program and a local scope if it is only accessible from the structure within which it is declared.

Most of the programs that you may have written are likely to have been procedural. 

The Structured Approach

Using the structured approach to program design and construction keeps programs easy to understand and manage. Four basic structures

Comments

No comments have yet been made