Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

ASSIGNMENT TO BE SUBMITED

TO
DR. TAWE
OF THE
DEPARTMENT OF COMPUTER SCIENCES
IN THE
FACULTY OF NATURAL AND APPLIED SCIENCES
BY
NAME: RINGS. T. DOMKAT
MAT. NO: PLASU/2012/NAS/0112
DEPT.: COMP. SCI.
QUESTION: Write down the names of programming
languages that uses the
following paradigms;
Imperative, Automata, Functional, Declarative, Objectoriented, and Even Driven.

ON
21ST OCT. 2016

INTRODUCTION:

MAIN PARADIGM APPROACHES


The following are considered [by whom?] the main programming
paradigms. There is inevitably some overlap in these paradigms
but the main features or identifiable differences are summarized
below:
Imperative Programming Defines computation as
statements that change a program state.
Procedural Programming, Structured ProgrammingSpecifies the steps the program must take to reach the
desired state.
Declarative Programming Defines computation logic
without defining its control flow.
Functional Programming Treats computation as the
evaluation of mathematical functions and avoids state and
mutable data.
Object-Oriented Programming (OOP) organizes
programs as objects: data structures consisting of data
fields and methods together with their interactions.
Event-Driven Programming The flow of the program is
determined by events, such as sensor outputs or user
actions (mouse clicks, key presses) or messages from other
programs or threads.
Automata-Based Programming A program, or part, is
treated as a model of a finite state machine or any other
formal automaton.
None of the main programming paradigms have a precise,
globally unanimous definition, let alone an official international
standard. Nor is there any agreement on which paradigm
constitutes the best approach to developing software. The
subroutines that actually implement OOP methods might be
ultimately coded in an imperative, functional or procedural style

that might, or might not, directly alter state on behalf of the


invoking program.

PARADIGM TABLE

PARADIGM DESCRIPTI MAIN


ON
CHARACTERI
STICS
1.0
Imperative

2.0
AutomataBased
Programmi
ng

3.0
Functional

4.0
Declarative

Computation
as
statements
that directly
change a
program
state (data
fields).
Treats
programs as
a model of a
finite state
machine or
any other
formal
automata.
Treats
computation
as the
evaluation
of
mathematic
al functions
avoiding
state and
mutable
data.
Defines
computation
logic without

RELATED
PARADIG
M(S)

Direct
assignments,
common data
structures, global
variables.

State
enumeration,
control variable,
state changes,
isomorphism,
state transition
table.

Imperative,
event-driven

Lambda calculus, Declarative


compositionality,
formula,
recursion,
referential
transparency, no
side effects.

4GLs,
spreadsheets,
report program

CRITI
CS

EXAMPLE
S

Edsger
W.
Dijkstra
,
Michael
A.
Jackson

C, C++, Java,
PHP, Python,
Ruby

AsmL

C++,[1]
Clojure,
Coffeescript,
[2]
Elixir,
Erlang, F#,
Haskell, Lisp,
Python,
Ruby, Scala,
SequenceL,
SML
SQL, regular
expressions,
CSS, Prolog,

5.0 ObjectOriented

6.0 EventDriven
Including
Time
Driven

7.0
Structured

8.0
Procedural

defining its
detailed
control flow.
Treats
data fields as
objects
manipulated
through predefined
methods
only.

generators.

Objects,
methods,
message
passing,
information
hiding, data
abstraction,
encapsulation,
polymorphism,
inheritance,
serializationmarshalling.
Program flow Main loop, event
is determined
handlers,
mainly by
asynchronous
events, such
processes.
as mouse
clicks or
interrupts
including
timer.
Structograms,
A style of
indentation,
imperative
either no, or
programmin
limited use of,
g with more
goto
statements
logical
Structograms,
program
indentation,
structure.
either no, or
limited use of,
goto statements.
Local variables,
Derived
sequence,
from
selection,
structured
iteration, and
programmin
modularization.
g, based on
the concept
of modular
programmin
g or the

OWL, SPARQL

Procedural

Common
Lisp, C++,
C#, Eiffel,
Java, PHP,
Python,
Ruby, Scala

Procedural,
dataflow

Javascript,
ActionScript,
Visual Basic,
Elm

Imperative

C, C++, Java,
Python

Structured,
imperative

C, C++, Lisp,
PHP, Python

procedure
call.

CONCLUSION: I got two additional paradigms, like Structured


and Procedural.
REFERENCE:
https://en.wikipedia.org/wiki/Comparison_of_programming
_paradigms

You might also like