Tuesday, 25 September 2018

PROGRAMMING PARADIGM AND LANGUAGE TRANSLATOR

Programming languages paradigm definition:
-A programming paradigm is a fundamental style of building the structure and elements of a program. The styles and capabilities of programming languages are defined by their paradigms

In the programming language paradigm, there are three types:

1. logic paradigm
2.object oriented paradigm
3.procedural paradigm

PROCEDURAL PARADIGM.
- focuses on designing methods
-a way to approach in problem solving based on module or function. its emphasizes steps taht provide the comp with instructions on how to solve a problem or carry out a task.
- example of language - C

OBJECT ORIENTED PARADIGM (OOP)
-based on the concept of an ''object'' taht combine both data and the function into  a single unit.
-OOP creates classes, which are like templates for creating object.
-example of language : Pascal ,FORTRAN, COBOL ,Java < C++
major benefits of OOP is the ability to reused in many systems by modifying existing objects.

LOGIC PARADIGM
-based on the idea of answering question through search for solution from a knowledge base.
-this is based on axiom, inference,rules and queries to solve the problem
-example of language : Prolog



LANGUAGE TRANSLATOR DEFINITION
-translator or programming language processor is a computer program that performs the translation of a program written in a given programming language into a functionally equivalent program in another computer language 


there are three types of language translator:
1.assembler
2.interpreter
3.compiler


ASSEMBLER
-translate program written in assembly language into machine language

INTERPRETER
-translates and executes one instruction at a time into machine language.

COMPILER
-translates the entire source program into machine language before executing it.









No comments:

Post a Comment

its been a while =3

hmmmmmmmm just want to sayy im now furthering my studies in UiTM Shah Alam =3 huhu my course is Multimedia Computing im hoping to be ab...