Cosc 95 Assignmnet 3
Cosc 95 Assignmnet 3
implementation, and organization of computer programs. It provides a set of rules, principles, and
techniques for creating software applications. A programming paradigm usually includes a set of
concepts, notation, and terminology to describe the structure and behavior of programs.
Imperative programming: This paradigm is based on the idea of a sequence of statements that change
the program state. The program consists of a series of commands that describe how the computer
should perform a task.
Object-oriented programming: This paradigm is based on the idea of objects that have properties and
behaviors. Objects can communicate with each other to perform tasks. It focuses on the organization of
code into reusable objects.
Functional programming: This paradigm is based on the concept of functions that take input and
produce output without modifying the state of the program. Functions are first-class citizens in
functional programming, which means they can be assigned to variables and passed as arguments to
other functions.
Logical programming: This paradigm is based on the idea of defining relations and rules that describe
the problem domain. It uses a declarative programming style where the programmer specifies what the
program should do, rather than how to do it.
Concurrent programming: This paradigm is based on the idea of multiple threads of execution that can
run simultaneously. It is used to build programs that can perform multiple tasks at the same time, which
can improve performance and responsiveness.
Each programming paradigm has its strengths and weaknesses and is suitable for different types of
problems.