18 - l1 C++ Lab Introduction of Computer Programming
18 - l1 C++ Lab Introduction of Computer Programming
Programming
EPE-2A
Programming Languages…
Machine Language Assembly Language
Fortran
Pascal
COBOL
BASIC Ada
Visual Basic
C and C++ Java
Smalltalk
The Evolution
of Programming Languages
First-Generation Languages
• Machine language:
– Consists of binary numbers
(0s and 1s)
– Is the earliest programming
language
– Is the only language the
computer understands
without translation
• It is machine dependent; each
family of processors has its own
machine language
Second-Generation Languages
• Assembly language:
– Resembles machine language
– Is a low-level language
– Uses brief abbreviations for
program instructions.
– Abbreviations are called
mnemonics
– A program is written in source
code (text file) and translated
into machine language by an
assembler
Third-Generation Languages
• Procedural languages:
– Are high-level languages that tell the computer
what to do and how to do it
– Create programs at a high level of abstraction
– Are easier to read, write, and maintain than
machine and assembly languages
– Use a compiler or interpreter to translate code
– Fortran and COBOL are third-generation languages
Compilers and Interpreters