SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Monolithic and
Procedural Programming
Monolithic Programming
 The Monolithic programming paradigm is the oldest. It has the following
characteristics. It is also known as the imperative programming paradigm.
• In this programming paradigm, the whole program is written in a single block.
• We use the goto statement to jump from one statement to another statement.
• It uses all data as global data which leads to data insecurity.
• There are no flow control statements like if, switch, for, and while statements in
this paradigm.
 An example of a Monolithic programming paradigm is Assembly language.
Procedural Programming
 The procedure-oriented programming paradigm is the advanced paradigm of a
structure-oriented paradigm. It has the following characteristics.
• This paradigm introduces a modular programming concept where a larger program
is divided into smaller modules.
• It provides the concept of code reusability.
• It is introduced with the concept of data types.
• It also provides flow control statements that provide more control to the user.
• It follows all the concepts of structure-oriented programming paradigm but the data
is defined as global data, and also local data to the individual modules.
• In this paradigm, functions may transform data from one form to another.
 Examples of procedure-oriented programming paradigm is C, visual basic,
FORTRAN, etc.
Key Features of Procedural
Programming
 The key features of procedural programming are given below:
• Predefined functions: A predefined function is typically an instruction identified by a name.
Usually, the predefined functions are built into higher-level programming languages, but they
are derived from the library or the registry, rather than the program.
• Local Variable: A local variable is a variable that is declared in the main structure of a method
and is limited to the local scope it is given. The local variable can only be used in the method it
is defined in, and if it were to be used outside the defined method, the code will cease to work.
• Global Variable: A global variable is a variable which is declared outside every other function
defined in the code. Due to this, global variables can be used in all functions, unlike a local
variable.
• Modularity: Modularity is when two dissimilar systems have two different tasks at hand but are
grouped together to conclude a larger task first. Every group of systems then would have its
own tasks finished one after the other until all tasks are complete.
• Parameter Passing: Parameter Passing is a mechanism used to pass parameters to functions,
subroutines or procedures. Parameter Passing can be done through ‘pass by value’, ‘pass by
reference’.
Paradigm Description Main traits
Related
paradigm(s)
Examples
Imperative
Programs
as statements that directly
change
computed state (datafields)
Direct assignments,
common data
structures, global
variables
C, C++, Java, Kotlin,
PHP, Python, Ruby,
Wolfram Language
Procedural
Derived from structured
programming, based on the
concept of modular
programming or
the procedure call
Local variables,
sequence,
selection, iteration,
and modularization
Structured,
imperative
C, C++, Lisp, PHP, P
ython, Wolfram
Language
Examples:
 #include <iostream.h> //procedural programing
 Void fact(int num)
 {int fact=1;
 for (int i = 1; i <= num; i++)
 {
 fact = fact * i;
 }
 cout << "Factorial of " << num << " is: " << fact << endl;
 }
 void main()
 {
 int num;
 cout << "Enter any Number: ";
 cin >> num;
 fact(num);
 }
 #include<iostream.h> //monolithic programing
 void main ()
 {
 int x = 10;
 loop: cout<<x<<",";
 x--;
 if (x>0)
 goto loop;
 }
 #include <iostream> // combine example
 void fact(int num)
 {int fact=1,i=1;
 bin: if( i <= num)
 { fact = fact * i;
 i ++;
 goto bin;
 }
 cout << "Factorial of " << num << " is: " << fact << endl;
 }
 int main()
 {int num;
 cout << "Enter any Number: ";
 cin >> num;
 fact(num);
 }

More Related Content

PPT
Control structure C++
PDF
4.LanguageProcessors and language Processing Activities.pdf
PPT
Virtual machine
PPTX
Unit 4 sp macro
PDF
Object oriented programming c++
PDF
Contact management system
PPTX
System software - macro expansion,nested macro calls
PPTX
Hardwired control
Control structure C++
4.LanguageProcessors and language Processing Activities.pdf
Virtual machine
Unit 4 sp macro
Object oriented programming c++
Contact management system
System software - macro expansion,nested macro calls
Hardwired control

What's hot (20)

PPT
Assembler design options
PPT
Introduction to Compiler design
PPTX
System Programming Unit II
PPT
Assemblers: Ch03
PDF
Access specifiers (Public Private Protected) C++
PPTX
Presentation on C programming language
PPT
Compiler Design Basics
PPTX
Code generation
PPTX
Finite Automata in compiler design
PDF
Lecture 01 introduction to compiler
PDF
Module 05 Preprocessor and Macros in C
PDF
Computer Organization Lecture Notes
PDF
SULTHAN's - C Programming Language notes
PPTX
Interpreter
PPTX
control statements in python.pptx
PPTX
Programming paradigm
PPTX
Python
PPTX
Software Engineering- Crisis and Process Models
PPTX
C language ppt
PPTX
Lect5 improving software economics
Assembler design options
Introduction to Compiler design
System Programming Unit II
Assemblers: Ch03
Access specifiers (Public Private Protected) C++
Presentation on C programming language
Compiler Design Basics
Code generation
Finite Automata in compiler design
Lecture 01 introduction to compiler
Module 05 Preprocessor and Macros in C
Computer Organization Lecture Notes
SULTHAN's - C Programming Language notes
Interpreter
control statements in python.pptx
Programming paradigm
Python
Software Engineering- Crisis and Process Models
C language ppt
Lect5 improving software economics
Ad

Similar to Monolithic and Procedural Programming (20)

PPTX
Unit 1
PPTX
object oriented programming part inheritance.pptx
PDF
OOP UNIT 1_removed ppt explaining object.pdf
PPTX
Different paradigms for problem solving.pptx
PPTX
Plc part 3
PPTX
Prgramming paradigms
DOCX
Training 8051Report
PPT
Unit 3 principles of programming language
PPT
PPTX
Initial Architectural Design (Game Architecture)
PPTX
Procedural programming
PPTX
Programming language paradigms
PPTX
a brief explanation on the topic of Imperative Programming Paradigm.pptx
PPTX
object oriented programming language in c++
PPTX
Software engineering topics,coding phase in sdlc
PPTX
Oop.pptx
PPTX
program fundamentals using python1 2 3 4.pptx
PDF
08 subprograms
PPTX
Desired language characteristics – Data typing .pptx
Unit 1
object oriented programming part inheritance.pptx
OOP UNIT 1_removed ppt explaining object.pdf
Different paradigms for problem solving.pptx
Plc part 3
Prgramming paradigms
Training 8051Report
Unit 3 principles of programming language
Initial Architectural Design (Game Architecture)
Procedural programming
Programming language paradigms
a brief explanation on the topic of Imperative Programming Paradigm.pptx
object oriented programming language in c++
Software engineering topics,coding phase in sdlc
Oop.pptx
program fundamentals using python1 2 3 4.pptx
08 subprograms
Desired language characteristics – Data typing .pptx
Ad

More from Deepam Aggarwal (13)

PPTX
Frames and its components
PDF
Bank managment system
PPTX
Inventory Management
PPTX
Dynamic memory allocation and linked lists
PPTX
Group By, Having Clause and Order By clause
PPTX
Cyber Criminal and Cyber Security
PPTX
Mdi vb.net
PPTX
Stress Management
PPT
Impressionism
PPTX
Powersharinginindia 150527161221-lva1-app6892
PPTX
Triangle and its properties
PPTX
probability-game of chances
PPTX
Political and public awareness through media (B.st)
Frames and its components
Bank managment system
Inventory Management
Dynamic memory allocation and linked lists
Group By, Having Clause and Order By clause
Cyber Criminal and Cyber Security
Mdi vb.net
Stress Management
Impressionism
Powersharinginindia 150527161221-lva1-app6892
Triangle and its properties
probability-game of chances
Political and public awareness through media (B.st)

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PDF
Classroom Observation Tools for Teachers
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
master seminar digital applications in india
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Complications of Minimal Access Surgery at WLH
PPTX
GDM (1) (1).pptx small presentation for students
RMMM.pdf make it easy to upload and study
Classroom Observation Tools for Teachers
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Types and Its function , kingdom of life
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
A systematic review of self-coping strategies used by university students to ...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Final Presentation General Medicine 03-08-2024.pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
master seminar digital applications in india
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Cell Structure & Organelles in detailed.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Complications of Minimal Access Surgery at WLH
GDM (1) (1).pptx small presentation for students

Monolithic and Procedural Programming

  • 2. Monolithic Programming  The Monolithic programming paradigm is the oldest. It has the following characteristics. It is also known as the imperative programming paradigm. • In this programming paradigm, the whole program is written in a single block. • We use the goto statement to jump from one statement to another statement. • It uses all data as global data which leads to data insecurity. • There are no flow control statements like if, switch, for, and while statements in this paradigm.  An example of a Monolithic programming paradigm is Assembly language.
  • 3. Procedural Programming  The procedure-oriented programming paradigm is the advanced paradigm of a structure-oriented paradigm. It has the following characteristics. • This paradigm introduces a modular programming concept where a larger program is divided into smaller modules. • It provides the concept of code reusability. • It is introduced with the concept of data types. • It also provides flow control statements that provide more control to the user. • It follows all the concepts of structure-oriented programming paradigm but the data is defined as global data, and also local data to the individual modules. • In this paradigm, functions may transform data from one form to another.  Examples of procedure-oriented programming paradigm is C, visual basic, FORTRAN, etc.
  • 4. Key Features of Procedural Programming  The key features of procedural programming are given below: • Predefined functions: A predefined function is typically an instruction identified by a name. Usually, the predefined functions are built into higher-level programming languages, but they are derived from the library or the registry, rather than the program. • Local Variable: A local variable is a variable that is declared in the main structure of a method and is limited to the local scope it is given. The local variable can only be used in the method it is defined in, and if it were to be used outside the defined method, the code will cease to work. • Global Variable: A global variable is a variable which is declared outside every other function defined in the code. Due to this, global variables can be used in all functions, unlike a local variable. • Modularity: Modularity is when two dissimilar systems have two different tasks at hand but are grouped together to conclude a larger task first. Every group of systems then would have its own tasks finished one after the other until all tasks are complete. • Parameter Passing: Parameter Passing is a mechanism used to pass parameters to functions, subroutines or procedures. Parameter Passing can be done through ‘pass by value’, ‘pass by reference’.
  • 5. Paradigm Description Main traits Related paradigm(s) Examples Imperative Programs as statements that directly change computed state (datafields) Direct assignments, common data structures, global variables C, C++, Java, Kotlin, PHP, Python, Ruby, Wolfram Language Procedural Derived from structured programming, based on the concept of modular programming or the procedure call Local variables, sequence, selection, iteration, and modularization Structured, imperative C, C++, Lisp, PHP, P ython, Wolfram Language
  • 6. Examples:  #include <iostream.h> //procedural programing  Void fact(int num)  {int fact=1;  for (int i = 1; i <= num; i++)  {  fact = fact * i;  }  cout << "Factorial of " << num << " is: " << fact << endl;  }  void main()  {  int num;  cout << "Enter any Number: ";  cin >> num;  fact(num);  }
  • 7.  #include<iostream.h> //monolithic programing  void main ()  {  int x = 10;  loop: cout<<x<<",";  x--;  if (x>0)  goto loop;  }  #include <iostream> // combine example  void fact(int num)  {int fact=1,i=1;  bin: if( i <= num)  { fact = fact * i;  i ++;  goto bin;  }  cout << "Factorial of " << num << " is: " << fact << endl;  }  int main()  {int num;  cout << "Enter any Number: ";  cin >> num;  fact(num);  }