FA23 G3 Presentation - Chapter9
FA23 G3 Presentation - Chapter9
FA23 G3 Presentation - Chapter9
CHAPTER 9:
PROGRAMMING
LANGUAGES
Presentation: Group 3
Lecturer: NhonNT
SUMMARY
I. EVOLUTIONS
- Machine languages
- Assembly languages
- High-level languages
II. TRANSLATION
- Translations process
- Compilation and Interpretation
III.PROGRAMMING PARADIGMS
- Procedural paradigms
- Object-oriented paradigm
- Functional paradigm
- Declarative paradigm
IV. CONCLUSION
1
I. EVOLUTIONS
Programming needs a
computer language—a set of
predefined words arranged
into a program with syntax
rules. - Machine languages.
- Assembly languages.
- High-level languages.
2
MACHINE LANGUAGES
- In the early days, only machine
languages existed.
- Machine language is composed of 0s
and 1s, specific to each computer.
- Tedious and machine-dependent;
considered the first generation of
programming languages.
3
ASSEMBLY LANGUAGES
- Introduced to replace machine
code with symbols or
mnemonics.
- Assembly languages used
symbolic representation for
instructions.
- Assembler translates assembly
code to machine code.
4
HIGH-LEVEL LANGUAGES
- Developed to improve programming
efficiency and portability.
- Portable across different computers,
relieving programmers from hardware
details.
- Examples: BASIC, COBOL, Pascal, Ada, C,
C++, Java.
5
II. TRANSLATION
• Modern programs use high-level languages and
need translation into the machine language of a
specific computer for execution.
• The original high-level code is called the source
program, and its translated form is the object
program.
• Compilation and interpretation are the two
6
common methods of translation.
TRANSLATION PROCESS
9
PROCEDURAL PARADIGMS
Procedural Paradigm Essentials:
•Distinct entities: procedures and objects.
•Programs triggering procedures to act on objects.
•Emphasis on separating procedures from program
triggers.
Procedural Program Components:
•Object creation (declaration).
•Sets of procedure calls (commands).
•Sets of codes for each procedure.
Key Procedural Languages: FORTRAN (FORmula
TRANslation); COBOL (COmmon Business-Oriented
Language); Pascal; C; Ada
10
OBJECT-ORIENTED PARADIGM
- Active objects with methods to perform
actions.
- Objects of the same type share
methods.
- Inheritance and polymorphism are key
concepts.
11
FUNCTIONAL PARADIDM
- Programs considered mathematical
functions.
- Predefined primitive functions
combined to create new functions.
- Encourages modular programming.
12
DECLARATIVE PARADIGM
13
IV. CONCLUSION
14