Professional Documents
Culture Documents
7.0 Introduction To Programming
7.0 Introduction To Programming
able to:
Define programming language, programming
paradigm and language translators
Introduction
7.1 Definition
Machine Assembly
language language
The natural language of a computer
Consists of strings of numbers (ultimately
reduced to 1's and 0's)
Difficult to write
Does not need to be translated
Advantages :
ready for immediate execution
Instructions are readily understood by the
computer
Disadvantages :
instructions are extremely cryptic and difficult
to learn
programs are lengthy
machine-dependent
Consists of English-like abbreviations
Clearer to humans
Need to be translated to machine language
before the computer processes it.
Use mnemonics symbols.
Advantages :
Instructions are easier to learn compared to
machine language
Disadvantages :
programs are lengthy
machine-dependent
WRITTEN IN A MACHINE WRITTEN IN A ASSEMBLY
LANGUAGE LANGUAGE
Examples :
FORTRAN (Scientific) , COBOL (Business),
BASIC , Pascal, Ada, C, C++, Java
The differences
Number High-Level Language Low-Level Language
1 Consists of English – like words to Consists of binary digits or
form instruction English – like abbreviations
to form instruction
Logic
PROLOG
ASP
Datalog
Any program that is not written in
machine language has to be translated
in machine language before it is
executed by the computer.
Convert programming source code into
language that the computer processor
understands. (machine language)
Translator
Assembler Interpreter Compiler