SlideShare a Scribd company logo
Lecture 01



     Introduction
           to
Programming Techniques
What are the Program Organizing
                       Techniques ?

There are four different techniques, they are
Unstructured Programming




Working:
Main program directly operates on global data.
Impractical when the program gets large.
The same statement sequence must be copied if
it is needed at different places.   ….
EG: for (I=1;I<=10;I++)             …..
      cout << ‘*’;
      DIS : Program becomes large
                                    …..
Structured Programming
             (Procedural Programming)

   main program     procedure
                                      Main ( )
                                      { add( );
                                          subtract ( );
                                      }

                                           Add ( )
Combine a sequence of statements into a
procedure with calls and returns.          { ……}
                                           Subtract( )
                                           { …..}
Structured Programming
                  (cont.)




Main program coordinates calls to procedures
and hands over appropriate data as parameters.
Modular Programming




Procedures of a common functionality are
grouped together into separate modules.
Main program coordinates calls to procedures in
separate modules and hands over appropriate
data as parameters.
Problems with Structured and Modular
              Programming




Unrestricted access to global data.
 Poor modeling of the real world. (Attributes and
behavior are separated - data and methods are
separated)
 Can’t create new data type easily.
Object-Oriented Programming


• Combine data and functions into object.
  (Member Data & Member Functions)
• Member functions are also called methods.
• Member data are hidden within member
  functions.
• Data Encapsulation & Data Hiding.
• Objects interact by sending messages to
  each other.
Object-Oriented Programming
                   (cont.)

• Object-Oriented Model

More Related Content

PPT
Design pattern composite 20120413 joncash 01
PDF
Programming Paradigms
PPTX
[OOP - Lec 03] Programming Paradigms
DOC
Programming paradigms
PPTX
Introduction to object oriented language
PPT
PPTX
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1
Design pattern composite 20120413 joncash 01
Programming Paradigms
[OOP - Lec 03] Programming Paradigms
Programming paradigms
Introduction to object oriented language
ฟังก์ชั่นย่อยและโปรแกรมมาตรฐาน ม. 6 1

Similar to Lecture01 (20)

PPTX
Oop in c++ lecture 1
PPT
Lecture04
PPTX
Procedural programming
PPSX
Algorithms, Structure Charts, Corrective and adaptive.ppsx
PPT
Programming
PPTX
Introduction to problem solving in C
PPTX
PCCF UNIT 2 CLASS.pptx
PPTX
Oop c++class(final).ppt
PDF
1.1 Introduction to procedural, modular, object-oriented and generic programm...
DOCX
Student DATABASE MANAGeMEnT SysTEm
PPTX
Static and dynamic scoping
PPTX
Structured programming & Programming methodologies.pptx
PPT
DATA STRUCTURE AND ALGORITHMS
PPT
Data structure
PPTX
Data structure Unit-I Part A
PPTX
data structures and its importance
PPTX
OOP Unit 1 - Foundation of Object- Oriented Programming
PDF
Chapter17 oop
PPT
PPT
73d32 session1 c++
Oop in c++ lecture 1
Lecture04
Procedural programming
Algorithms, Structure Charts, Corrective and adaptive.ppsx
Programming
Introduction to problem solving in C
PCCF UNIT 2 CLASS.pptx
Oop c++class(final).ppt
1.1 Introduction to procedural, modular, object-oriented and generic programm...
Student DATABASE MANAGeMEnT SysTEm
Static and dynamic scoping
Structured programming & Programming methodologies.pptx
DATA STRUCTURE AND ALGORITHMS
Data structure
Data structure Unit-I Part A
data structures and its importance
OOP Unit 1 - Foundation of Object- Oriented Programming
Chapter17 oop
73d32 session1 c++
Ad

More from elearning_portal (13)

PPT
Lecture05
PPT
Lecture21
PPT
Lecture19
PPT
Lecture18
PPT
Lecture17
PPT
Lecture16
PPT
Lecture10
PPT
Lecture09
PPT
Lecture07
PPT
Lecture06
PPT
Lecture20
PPT
Lecture03
PPT
Lecture02
Lecture05
Lecture21
Lecture19
Lecture18
Lecture17
Lecture16
Lecture10
Lecture09
Lecture07
Lecture06
Lecture20
Lecture03
Lecture02
Ad

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Lesson notes of climatology university.
PPTX
Cell Structure & Organelles in detailed.
PDF
Insiders guide to clinical Medicine.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Institutional Correction lecture only . . .
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
TR - Agricultural Crops Production NC III.pdf
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
Computing-Curriculum for Schools in Ghana
Lesson notes of climatology university.
Cell Structure & Organelles in detailed.
Insiders guide to clinical Medicine.pdf
Microbial disease of the cardiovascular and lymphatic systems
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
STATICS OF THE RIGID BODIES Hibbelers.pdf
GDM (1) (1).pptx small presentation for students
Institutional Correction lecture only . . .
O5-L3 Freight Transport Ops (International) V1.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Lecture01

  • 1. Lecture 01 Introduction to Programming Techniques
  • 2. What are the Program Organizing Techniques ? There are four different techniques, they are
  • 3. Unstructured Programming Working: Main program directly operates on global data. Impractical when the program gets large. The same statement sequence must be copied if it is needed at different places. …. EG: for (I=1;I<=10;I++) ….. cout << ‘*’; DIS : Program becomes large …..
  • 4. Structured Programming (Procedural Programming) main program procedure Main ( ) { add( ); subtract ( ); } Add ( ) Combine a sequence of statements into a procedure with calls and returns. { ……} Subtract( ) { …..}
  • 5. Structured Programming (cont.) Main program coordinates calls to procedures and hands over appropriate data as parameters.
  • 6. Modular Programming Procedures of a common functionality are grouped together into separate modules. Main program coordinates calls to procedures in separate modules and hands over appropriate data as parameters.
  • 7. Problems with Structured and Modular Programming Unrestricted access to global data. Poor modeling of the real world. (Attributes and behavior are separated - data and methods are separated) Can’t create new data type easily.
  • 8. Object-Oriented Programming • Combine data and functions into object. (Member Data & Member Functions) • Member functions are also called methods. • Member data are hidden within member functions. • Data Encapsulation & Data Hiding. • Objects interact by sending messages to each other.
  • 9. Object-Oriented Programming (cont.) • Object-Oriented Model