SlideShare a Scribd company logo
OBJECT ORIENTED PROGRAMMING
DEFINITIONS
PROGRAM
A set of instructions that tells a computer what to do is called
program. Computer programs are written in programming languages.
A person who develops a program is called programmer. The
programmer develops programs to instruct the computer how to
process data to convert into information. Programmer uses
programming languages or tools to write programs.
A person can be good programmer if he has the skill of solving
problems. Different problem-solving techniques are as follows:
• Program
• Algorithm
• Flowchart etc.
Nida Chaudhary
ALGORITHM
An algorithmis a step-by-step procedure to solve a problem. The process of solving a problem becomes
simpler and easier with help of algorithm. It is better to write algorithmbefore writingthe actual
computer program.
PROPERTIES OF ALGORITHM: Following are some properties of an algorithm,
• The given problem should be broken down into simple and meaningful steps.
• The steps should be numbered sequentially.
• The steps should be descriptive and written in simple English.
Nida Chaudhary
PSEUDO CODE
Algorithmsare written in a language that is similar to simple English called pseudo code. There is no
standardto write pseudo code.
Pseudo code simplifies program development by separating it into two main parts.
1. LOGIC DESIGN: In this part, the logic of the program is designed. We specify different steps required
to solve the problem and the sequence of these steps.
2. CODING: In this part, the algorithm is converted into a program. The steps of algorithm are
translated into instructions of any programming language.
Nida Chaudhary
Example 1
The following algorithm inputs two numbers, calculates
sum and then display result on screen.
1. Start
2. Input A
3. Input B
4. Total = A + B
5. Display Total
6. Exit.
Nida Chaudhary
The following algorithm finds the sum of first fifty
natural numbers.
1. Start
2. sum = 0
3. N = 0
4. Repeat Step 5 and 6 While (N <= 50)
5. sum =sum + N
6. N=N+1
7. Print sum
8. End
Example 4
Nida Chaudhary
FLOWCHART
https://www.slideshare.net/MusicWorld11/flowchart-in-programming-by-nida-chaudhary
Nida Chaudhary
DIFFERENCE BETWEEN FLOWCHART & ALGORITHM
No Flowchart Algorithm
1
Standard symbols are used to
design flowchart.
Simple English is used to write
algorithm.
2 Flowchart is more time-consuming. Algorithm is less time-consuming.
3 It is difficult to modify. It is easier to modify.
4
It is a graphical representation of
solution.
It is a step-by-step procedure to
solve a problem.
Nida Chaudhary
Nida Chaudhary

More Related Content

What's hot (20)

PPT
Fundamental Programming Lect 1
Namrah Erum
 
PDF
Algorithm Pseudo
Syed Zaid Irshad
 
PPT
Programming fundamentals lecture 1&2
Raja Hamid
 
PPTX
Csc1100 exercise 4-design n-test
IIUM
 
PPT
Class 7 lecture notes
Stephen Parsons
 
PDF
Decision Making Statements, Arrays, Strings
Prabu U
 
PPT
Steps for Developing a 'C' program
Sahithi Naraparaju
 
PPTX
Introduction to Programming
ALI RAZA
 
PPTX
Flowcharts and pseudocodes
Dr Piyush Charan
 
PDF
Into To Solve Problem And Computer Programming
Ahmed Elnemr
 
PPTX
Programming on a computer
Maya Lopez
 
PPTX
Overview of language processor sp
ravinlaheri2
 
PPT
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft
 
PPT
Csc 130 class 2 problem analysis and flow charts(2)
Puneet narula
 
PPT
Copy of dti2143/dam31303 chap 1 problem solving and program design
alish sha
 
PDF
POLITEKNIK MALAYSIA
Aiman Hud
 
PPT
La5 Program Phases
Cma Mohd
 
PPS
Chapter #1 overview of programming and problem solving
Abdul Shah
 
PPTX
Lesson 14 computer system sofware
guevarra_2000
 
Fundamental Programming Lect 1
Namrah Erum
 
Algorithm Pseudo
Syed Zaid Irshad
 
Programming fundamentals lecture 1&2
Raja Hamid
 
Csc1100 exercise 4-design n-test
IIUM
 
Class 7 lecture notes
Stephen Parsons
 
Decision Making Statements, Arrays, Strings
Prabu U
 
Steps for Developing a 'C' program
Sahithi Naraparaju
 
Introduction to Programming
ALI RAZA
 
Flowcharts and pseudocodes
Dr Piyush Charan
 
Into To Solve Problem And Computer Programming
Ahmed Elnemr
 
Programming on a computer
Maya Lopez
 
Overview of language processor sp
ravinlaheri2
 
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft
 
Csc 130 class 2 problem analysis and flow charts(2)
Puneet narula
 
Copy of dti2143/dam31303 chap 1 problem solving and program design
alish sha
 
POLITEKNIK MALAYSIA
Aiman Hud
 
La5 Program Phases
Cma Mohd
 
Chapter #1 overview of programming and problem solving
Abdul Shah
 
Lesson 14 computer system sofware
guevarra_2000
 

Similar to Object oriented programming (20)

PPTX
Programming
Dr. B T Sampath Kumar
 
PPTX
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
MarcMiguel2
 
PPT
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
cosc242101003
 
PPTX
Introduction to computer science
umardanjumamaiwada
 
PPTX
lecture 5
umardanjumamaiwada
 
ODP
Algorithms
Pradhan Rishi Sharma
 
ODP
Algorithms
Pradhan Rishi Sharma
 
PPTX
PCCF UNIT 1.pptx
DivyaKS12
 
PPTX
introduction to computing & programming
Kalai Selvi
 
PPT
Algo.ppt
AyeshaAshiq7
 
DOCX
programming concept
Nehabhy
 
PPTX
Programming C ppt for learning foundations
ssuser65733f
 
PPT
programming language(C++) chapter-one contd.ppt
Fuadsabseb
 
PPTX
Programming Techniques.pptx
AnkitaAgrawal404870
 
PDF
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
PPTX
Algorithm,Pseudocode,Flowchart.pptx
DrThenmozhiKarunanit
 
PPTX
Algorithm and flowchart2010
Jordan Delacruz
 
PPT
Chapter 1.ppt
tadudemise
 
PPTX
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
PPSX
Algorithm and flowchart
Sachin Goyani
 
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
MarcMiguel2
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
cosc242101003
 
Introduction to computer science
umardanjumamaiwada
 
lecture 5
umardanjumamaiwada
 
PCCF UNIT 1.pptx
DivyaKS12
 
introduction to computing & programming
Kalai Selvi
 
Algo.ppt
AyeshaAshiq7
 
programming concept
Nehabhy
 
Programming C ppt for learning foundations
ssuser65733f
 
programming language(C++) chapter-one contd.ppt
Fuadsabseb
 
Programming Techniques.pptx
AnkitaAgrawal404870
 
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
Algorithm,Pseudocode,Flowchart.pptx
DrThenmozhiKarunanit
 
Algorithm and flowchart2010
Jordan Delacruz
 
Chapter 1.ppt
tadudemise
 
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Algorithm and flowchart
Sachin Goyani
 
Ad

Recently uploaded (20)

PPTX
Dolphin_Conservation_AI_txhasvssbxbanvgdghng
jeeaspirant2026fr
 
PDF
PRIZ Academy - Change Flow Thinking Master Change with Confidence.pdf
PRIZ Guru
 
PPTX
00-ClimateChangeImpactCIAProcess_PPTon23.12.2024-ByDr.VijayanGurumurthyIyer1....
praz3
 
PDF
Natural Language processing and web deigning notes
AnithaSakthivel3
 
PPTX
Unit II: Meteorology of Air Pollution and Control Engineering:
sundharamm
 
PDF
Natural Language processing and web deigning notes
AnithaSakthivel3
 
PPTX
Mining Presentation Underground - Copy.pptx
patallenmoore
 
PPTX
Cyclic_Redundancy_Check_Presentation.pptx
alhjranyblalhmwdbdal
 
PDF
Lecture Information Theory and CodingPart-1.pdf
msc9219
 
PDF
SMART HOME AUTOMATION PPT BY - SHRESTH SUDHIR KOKNE
SHRESTHKOKNE
 
PDF
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
PPTX
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
PPTX
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
PPT
Oxygen Co2 Transport in the Lungs(Exchange og gases)
SUNDERLINSHIBUD
 
PDF
Web Technologies - Chapter 3 of Front end path.pdf
reemaaliasker
 
PDF
th International conference on Big Data, Machine learning and Applications (B...
Zac Darcy
 
PPTX
Benefits_^0_Challigi😙🏡💐8fenges[1].pptx
akghostmaker
 
PPTX
Data_Analytics_Presentation_By_Malik_Azanish_Asghar.pptx
azanishmalik1
 
PDF
The Complete Guide to the Role of the Fourth Engineer On Ships
Mahmoud Moghtaderi
 
PPT
04 Origin of Evinnnnnnnnnnnnnnnnnnnnnnnnnnl-notes.ppt
LuckySangalala1
 
Dolphin_Conservation_AI_txhasvssbxbanvgdghng
jeeaspirant2026fr
 
PRIZ Academy - Change Flow Thinking Master Change with Confidence.pdf
PRIZ Guru
 
00-ClimateChangeImpactCIAProcess_PPTon23.12.2024-ByDr.VijayanGurumurthyIyer1....
praz3
 
Natural Language processing and web deigning notes
AnithaSakthivel3
 
Unit II: Meteorology of Air Pollution and Control Engineering:
sundharamm
 
Natural Language processing and web deigning notes
AnithaSakthivel3
 
Mining Presentation Underground - Copy.pptx
patallenmoore
 
Cyclic_Redundancy_Check_Presentation.pptx
alhjranyblalhmwdbdal
 
Lecture Information Theory and CodingPart-1.pdf
msc9219
 
SMART HOME AUTOMATION PPT BY - SHRESTH SUDHIR KOKNE
SHRESTHKOKNE
 
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
ISO/IEC JTC 1/WG 9 (MAR) Convenor Report
Kurata Takeshi
 
MPMC_Module-2 xxxxxxxxxxxxxxxxxxxxx.pptx
ShivanshVaidya5
 
Oxygen Co2 Transport in the Lungs(Exchange og gases)
SUNDERLINSHIBUD
 
Web Technologies - Chapter 3 of Front end path.pdf
reemaaliasker
 
th International conference on Big Data, Machine learning and Applications (B...
Zac Darcy
 
Benefits_^0_Challigi😙🏡💐8fenges[1].pptx
akghostmaker
 
Data_Analytics_Presentation_By_Malik_Azanish_Asghar.pptx
azanishmalik1
 
The Complete Guide to the Role of the Fourth Engineer On Ships
Mahmoud Moghtaderi
 
04 Origin of Evinnnnnnnnnnnnnnnnnnnnnnnnnnl-notes.ppt
LuckySangalala1
 
Ad

Object oriented programming

  • 2. DEFINITIONS PROGRAM A set of instructions that tells a computer what to do is called program. Computer programs are written in programming languages. A person who develops a program is called programmer. The programmer develops programs to instruct the computer how to process data to convert into information. Programmer uses programming languages or tools to write programs. A person can be good programmer if he has the skill of solving problems. Different problem-solving techniques are as follows: • Program • Algorithm • Flowchart etc. Nida Chaudhary
  • 3. ALGORITHM An algorithmis a step-by-step procedure to solve a problem. The process of solving a problem becomes simpler and easier with help of algorithm. It is better to write algorithmbefore writingthe actual computer program. PROPERTIES OF ALGORITHM: Following are some properties of an algorithm, • The given problem should be broken down into simple and meaningful steps. • The steps should be numbered sequentially. • The steps should be descriptive and written in simple English. Nida Chaudhary
  • 4. PSEUDO CODE Algorithmsare written in a language that is similar to simple English called pseudo code. There is no standardto write pseudo code. Pseudo code simplifies program development by separating it into two main parts. 1. LOGIC DESIGN: In this part, the logic of the program is designed. We specify different steps required to solve the problem and the sequence of these steps. 2. CODING: In this part, the algorithm is converted into a program. The steps of algorithm are translated into instructions of any programming language. Nida Chaudhary
  • 5. Example 1 The following algorithm inputs two numbers, calculates sum and then display result on screen. 1. Start 2. Input A 3. Input B 4. Total = A + B 5. Display Total 6. Exit. Nida Chaudhary
  • 6. The following algorithm finds the sum of first fifty natural numbers. 1. Start 2. sum = 0 3. N = 0 4. Repeat Step 5 and 6 While (N <= 50) 5. sum =sum + N 6. N=N+1 7. Print sum 8. End Example 4 Nida Chaudhary
  • 8. DIFFERENCE BETWEEN FLOWCHART & ALGORITHM No Flowchart Algorithm 1 Standard symbols are used to design flowchart. Simple English is used to write algorithm. 2 Flowchart is more time-consuming. Algorithm is less time-consuming. 3 It is difficult to modify. It is easier to modify. 4 It is a graphical representation of solution. It is a step-by-step procedure to solve a problem. Nida Chaudhary