Please enable JavaScript.
Coggle requires JavaScript to display documents.
INTRODUCTION OF PROGRAMMING - Coggle Diagram
INTRODUCTION OF PROGRAMMING
Programming Languages
Low-level language
Machine Language
a language that consists of strings of binary digits(1 and 0) to represent instructions to computer
Advantage: readily understood by the computers because it does not need to be translated before being executed
Disadvantage:
difficult to learn and understand
program are lengthy because a single instruction of machine
language corresponds to only one operation at the machine
level
machine-dependent; it can only be used on the machine it is
originally created for
Assembly Language
a language that consists of English-like abbreviations, called Mnemonics, to represent instructions to computer
Advantage: easier to learn and understand compared to machine language
Disadvantage:
not readily understood by computers
needs to be translated into machine language before being
executed
programs are lengthy because a single instruction of assembly
language corresponds to only one operation at the machine
level
machine-dependent; it can only be used on the machine it is
originally created for
Low-level Language is defined as a language that consists of strings binary digits or English-like abbreviations to represent basic instructions to a computer
High-level language
Java
C++
FORTRAN
COBOL
BASIC
Pascal
High-level language is defined as a programming language that consists of a series of English like words to represent instructions to computer
Programming language is defined as a set of words, symbols and codes that enables programmer to give instructions to a computer
Programming Paradigms
Procedural
Based on the concept of modular programming
Advantage
It makes the program more readable and easier to maintain
It can reuse the code
Example
C
Pascal
ColdFusion
Object-oriented
Based on objects and classes
Advantage
Code reusability ( the ability to reuse and modify existing objects)
Avoid programming redundancy
Programmers create applications faster
Example
Java
C++
Phyton
Logic
A set of sentences in logical form, expressing facts and rules about some problem domain
Advantage
The system solves the problem, so the programming steps themselves are kept to a minimum
Proving the validity of a given program is simple
Example
LISP
ProLog
Programming Languages Translators
Translator is defined as a program that translates programming source code into machine language
Assembler
Translates program written in assembly language into machine language
Interpreter
Translates high-level programming language into machine language one line at a time
Compiler
Translates the entire source code if high-level programming language into machine language