17. A programming paradigm
Is fundamental approach or style of
programming that provides a set of principles,
concepts, and techniques for designing and
implementing computer programs.
It defines the structure, organization, and flow
of the code, as well as the methodologies for
problem-solving and expressing computations.
techniques used to solve problems, and
the overall design philosophy.
18. Imperative programming paradigm:
Procedural Programming/Structured
programming:
where the program is structured around
procedures or functions that manipulate data.
It focuses on step-by-step instructions and
emphasizes code reusability through the use of
functions. C and Pascal are examples of
languages.
19. Object-Oriented Programming (OOP):
revolves around the concept of objects,
which are instances of classes.
It organizes code into objects that
encapsulate data and behavior.
OOP promotes modularity, reusability,
and allows for concepts such as
inheritance, polymorphism, and
encapsulation.
Java, C++, and Python are popular
languages that support OOP.
20. Declarative programming paradigm
Functional Programming (FP):
treats computation as the evaluation of
mathematical functions and avoids changing state
and mutable data.
It emphasizes immutability, pure functions, and
higher-order functions.
FP languages focus on expressing computations
as the evaluation of expressions.
Haskell, Lisp, and Erlang.
21. Logic programming paradigms –
It can be termed as abstract model of
computation.
It would solve logical problems like
puzzles, series etc.
In logic programming we have a
knowledge base which we know before
and along with the question and
knowledge base which is given to
machine, it produces result. the concept of
artificial intelligence, machine learning we
have some models like Perception model
which is using the same mechanism.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31. It contains 6 phases, they are as follows….
1.Problem Definition
2.Problem Analysis
3.Algorithm Development
4.Coding & Documentation
5.Testing & Debugging
6.Maintenance
PROGRAM DEVELOPMENT LIFE CYCLE
32.
33. I. Problem Definition
we define the problem statement
we decide the boundaries of the problem.
what is our requirement
what should be the output of the problem
solution.
II. Problem Analysis
we determine the requirements like
variables, functions, etc. to solve the
problem.
we gather the required resources to solve
the problem
we also determine the bounds of the
solution.
34. III. Algorithm Development
develop a step by step procedure to solve
the problem
important for program development.
IV. Coding & Documentation
write or implement actual programming.
we construct actual program like C, C++,
Java programming languages
V. Testing & Debugging
we check whether the code written in
previous step is solving the specified
problem or not.
we test the program whether it is solving
the problem for various input data values
or not.