Programming Languages
Programming Languages
II.If...Then...Else
III.Select Case
Translators
A translator is a program that converts
statements written in one language to
statements in another language, e.g.
converting assembly language to machine
language.
There are three types of translators:
Assemblers – translate assembly language
into machine language. The resulting program
is executed when the assembly process is
completed.
Compilers – translate a high-level language
into machine language. The resulting program
can only be executed when compilation is
completed.
Interpreters- translate and execute each
source statement in logical sequence as the
program is executed
Program Design Aims
Readability of the program.
A program should be easy for programmers to read
and understand. Readability of the program
enhances maintainability and portability.
Readability is normally achieved through:
(i) Identifying of program statements.
(ii) Incorporating comments within the program.
Reliability
A program should be able to work at all times.
Portability
Programs should be designed in such a way
that they can be transferred from different
makes of computers without being modified.
The implication of this is that a program
should not be machine dependent.
Program Design
Aims
Maintainability