SlideShare a Scribd company logo
5
Most read
6
Most read
14
Most read
 FLOWCART & ALGORITHMS
Flowchart and algorithem
What is flowchart ?
 A flowchart is graphical or diagrammatical representation of
sequence of any problem to be solved by computer
programming language.
How it is useful?
 It is used to prepare first before writing any program. It is also
used to correct and debug a program flow after coding part is
completed.
1.flowchart :
Various symbol of flow chart with diagram:
 Start and stop :
 Input/output :
 Decision :
 Connector :
 Loop :
 Process or expression
representation :
 Direction of flow or
flow lines :
Flowchart examples :
1.Draw a flow chart to find factorial of given number :
F=1*2*3*4……..N
start
Read
N
F=1
I=1
Answer :
F=4
Process
no.2
I<=N
Print
“facto=“,f
stop
F=F*I
I=I+1
TrueFalse
N=F=4i=1
1)F=F*I=1*1=1
1) I=1 , F=1
2) I=2 , F=1
3) I=3, F=2
2)F=F*I=1*2=2
3)F=F*I=2*3=6
4)F=F*I=6*4=24
4) I=4, F=6
5) I=5, F=24
4!=1*2*3*4
2.Draw a flow chart to reverse given number.
e.g. 123 --- 321
 Answer :
Sum=0
start
Read
num
stop
r=num%10
Num>0
Num=num/10
sum=sum + r
print
“rvr=“,sum
TrueFalse
Num=123  1.
 r=123 % 10 =3
 Sum = 0 +3 = 3
 num = 123/10 =12
 2.
 r =12 % 10
=2 Sum = 0 +2 = 2
 num = 12/10 =1
 3.
 r =1 % 10 = 1
 Sum = 0 +1 = 1
 num = 1/10 =0
Output :
3 2 1
1) 123>0
2) 12>0
3) 1>0
4) 0>0
Result :
Through flow chart it is easy to understand
the logic and sequence of problem.
After drawing flowchart it becomes easy to
write any program.
2.Algorithms :
 An algorithms is a finite sequence of well
defined steps or operations for solving a
problem in systematic manner.
 These are rules for solving any problems in
proper manner. Instruction are written in
the natural language.
What is algorithms ?
Types of algirithms :
1. Divide and conquer
2. Greedy method
3. Branch and bound
4. Recursion
5. effectiveness
Pseudo code:
 It is language or part of language
used to convert program into easy
form.
 It allows the programmer to write
logic of flowchart or algorithm in
symbolic form.
Pseudo code can be used for folowing situation:
 Storage declaration
 Assignment of any value
 Procedure call
 Input / output
 Constant value
Examples of algorithms :
Step 1 : input number : num
Step 2 : I =1
Step 3 : f =1
Step 4 : repeat from step 4 to step 6 until I<=num
Step 5 : f=f*I
Step 6 : i=i+1
Step 7 : print “ factorial = “,f
Step 8 : stop
1.Write an algorithm to find factorial of given number :
Examples of algorithms :
Step 1 : input number : num
Step 2 : sum=0
Step 3 : repeat from step 3 to step 6 until num>0
Step 4 : calculate r = num % 10
Step 5 : calculate sum = sum * 10 + r
Step 6 : calculate num = num / 10
Step 7 : print “ reverse number = “,sum
Step 8 : stop
2.Write an algorithm to reverse of given number :

More Related Content

What's hot (20)

DOCX
Basic structure of c programming
TejaswiB4
 
PPT
3 algorithm-and-flowchart
Rohit Shrivastava
 
PPTX
COMPUTER PROGRAMMING
imtiazalijoono
 
PPTX
Algorithms and flowcharts
Samuel Igbanogu
 
PPTX
Operators and expressions in c language
tanmaymodi4
 
PPTX
ppt of flowchart
140120109032
 
PPTX
Introduction to c programming
Manoj Tyagi
 
PPTX
Unit 3. Input and Output
Ashim Lamichhane
 
PPT
Lecture 1- History of C Programming
Md. Imran Hossain Showrov
 
PPTX
Programming Fundamentals lecture 1
REHAN IJAZ
 
PPTX
Programming fundamentals lecture 4
Raja Hamid
 
PPTX
Algorithm and flowchart
Rabin BK
 
PPTX
Flowchart and algorithm
DHANIK VIKRANT
 
PPTX
Presentation on C programming language
Ashmita Tuition Center
 
PPTX
Computer Organization and Architecture.pptx
AshokRachapalli1
 
PPT
Modular programming
Mohanlal Sukhadia University (MLSU)
 
PPT
How to execute a C program
Leela Koneru
 
PPSX
Algorithm and flowchart
Sachin Goyani
 
PPTX
structured programming
Ahmad54321
 
PPTX
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
Basic structure of c programming
TejaswiB4
 
3 algorithm-and-flowchart
Rohit Shrivastava
 
COMPUTER PROGRAMMING
imtiazalijoono
 
Algorithms and flowcharts
Samuel Igbanogu
 
Operators and expressions in c language
tanmaymodi4
 
ppt of flowchart
140120109032
 
Introduction to c programming
Manoj Tyagi
 
Unit 3. Input and Output
Ashim Lamichhane
 
Lecture 1- History of C Programming
Md. Imran Hossain Showrov
 
Programming Fundamentals lecture 1
REHAN IJAZ
 
Programming fundamentals lecture 4
Raja Hamid
 
Algorithm and flowchart
Rabin BK
 
Flowchart and algorithm
DHANIK VIKRANT
 
Presentation on C programming language
Ashmita Tuition Center
 
Computer Organization and Architecture.pptx
AshokRachapalli1
 
How to execute a C program
Leela Koneru
 
Algorithm and flowchart
Sachin Goyani
 
structured programming
Ahmad54321
 
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 

Similar to Flowchart and algorithem (20)

PDF
Lesson 11 1
nabanita123
 
PPTX
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
PPTX
Chapter #1 (Introduction To Algorithms).pptx
hekmatyarzahir44
 
PPTX
Lesson 1 of c programming algorithms and flowcharts.pptx
AlinaMishra7
 
PPTX
Unit 1(1).pptx Program Logic Development
Vaibhav Parjane
 
PPTX
flowchart & algorithms
Student
 
PDF
algorithms and flow chart overview.pdf
AmanPratik11
 
PDF
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
PPT
Proble, Solving & Automation
Janani Satheshkumar
 
PPT
UNIT- 3-FOC.ppt
KalaivaniRMECLectCSE
 
PDF
Unit 1-problem solving with algorithm
rajkumar1631010038
 
PDF
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
PPT
Unit 1 psp
Karthi Vel
 
PPTX
Algrithms and frowcharts.pptx
Gurneetsingh83
 
PPTX
Algorithm and flowchart.pptx
MaheShiva
 
PPTX
Algorithms and flow charts
Chinnu Edwin
 
PDF
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
PPT
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
PPT
Lect1 - Algorithms-and-Flowchart-ppt.ppt
KARMANAYGUPTA1
 
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
samreen82
 
Lesson 11 1
nabanita123
 
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Chapter #1 (Introduction To Algorithms).pptx
hekmatyarzahir44
 
Lesson 1 of c programming algorithms and flowcharts.pptx
AlinaMishra7
 
Unit 1(1).pptx Program Logic Development
Vaibhav Parjane
 
flowchart & algorithms
Student
 
algorithms and flow chart overview.pdf
AmanPratik11
 
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
Proble, Solving & Automation
Janani Satheshkumar
 
UNIT- 3-FOC.ppt
KalaivaniRMECLectCSE
 
Unit 1-problem solving with algorithm
rajkumar1631010038
 
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
Unit 1 psp
Karthi Vel
 
Algrithms and frowcharts.pptx
Gurneetsingh83
 
Algorithm and flowchart.pptx
MaheShiva
 
Algorithms and flow charts
Chinnu Edwin
 
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
Lect1 - Algorithms-and-Flowchart-ppt.ppt
KARMANAYGUPTA1
 
Lecture1-Algorithms-and-Flowchart-ppt.ppt
samreen82
 
Ad

Recently uploaded (20)

PDF
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
PDF
Artificial intelligence,WHAT IS AI ALL ABOUT AI....pdf
Himani271945
 
PPTX
Fundamentals of Quantitative Design and Analysis.pptx
aliali240367
 
PPTX
Precooling and Refrigerated storage.pptx
ThongamSunita
 
PDF
A Brief Introduction About Robert Paul Hardee
Robert Paul Hardee
 
PDF
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
PDF
Module - 4 Machine Learning -22ISE62.pdf
Dr. Shivashankar
 
PPTX
Introduction to File Transfer Protocol with commands in FTP
BeulahS2
 
PDF
LLC CM NCP1399 SIMPLIS MODEL MANUAL.PDF
ssuser1be9ce
 
PPTX
UNIT 1 - INTRODUCTION TO AI and AI tools and basic concept
gokuld13012005
 
PPTX
Functions in Python Programming Language
BeulahS2
 
PPTX
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
PDF
Artificial Neural Network-Types,Perceptron,Problems
Sharmila Chidaravalli
 
PPTX
Alan Turing - life and importance for all of us now
Pedro Concejero
 
PDF
William Stallings - Foundations of Modern Networking_ SDN, NFV, QoE, IoT, and...
lavanya896395
 
PDF
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
PDF
Digital water marking system project report
Kamal Acharya
 
Submit Your Papers-International Journal on Cybernetics & Informatics ( IJCI)
IJCI JOURNAL
 
Artificial intelligence,WHAT IS AI ALL ABOUT AI....pdf
Himani271945
 
Fundamentals of Quantitative Design and Analysis.pptx
aliali240367
 
Precooling and Refrigerated storage.pptx
ThongamSunita
 
A Brief Introduction About Robert Paul Hardee
Robert Paul Hardee
 
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
Module - 4 Machine Learning -22ISE62.pdf
Dr. Shivashankar
 
Introduction to File Transfer Protocol with commands in FTP
BeulahS2
 
LLC CM NCP1399 SIMPLIS MODEL MANUAL.PDF
ssuser1be9ce
 
UNIT 1 - INTRODUCTION TO AI and AI tools and basic concept
gokuld13012005
 
Functions in Python Programming Language
BeulahS2
 
Introduction to Internal Combustion Engines - Types, Working and Camparison.pptx
UtkarshPatil98
 
Artificial Neural Network-Types,Perceptron,Problems
Sharmila Chidaravalli
 
Alan Turing - life and importance for all of us now
Pedro Concejero
 
William Stallings - Foundations of Modern Networking_ SDN, NFV, QoE, IoT, and...
lavanya896395
 
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
Digital water marking system project report
Kamal Acharya
 
Ad

Flowchart and algorithem

  • 1.  FLOWCART & ALGORITHMS
  • 3. What is flowchart ?  A flowchart is graphical or diagrammatical representation of sequence of any problem to be solved by computer programming language. How it is useful?  It is used to prepare first before writing any program. It is also used to correct and debug a program flow after coding part is completed. 1.flowchart :
  • 4. Various symbol of flow chart with diagram:  Start and stop :  Input/output :  Decision :  Connector :  Loop :  Process or expression representation :  Direction of flow or flow lines :
  • 5. Flowchart examples : 1.Draw a flow chart to find factorial of given number : F=1*2*3*4……..N start Read N F=1 I=1 Answer : F=4
  • 6. Process no.2 I<=N Print “facto=“,f stop F=F*I I=I+1 TrueFalse N=F=4i=1 1)F=F*I=1*1=1 1) I=1 , F=1 2) I=2 , F=1 3) I=3, F=2 2)F=F*I=1*2=2 3)F=F*I=2*3=6 4)F=F*I=6*4=24 4) I=4, F=6 5) I=5, F=24 4!=1*2*3*4
  • 7. 2.Draw a flow chart to reverse given number. e.g. 123 --- 321  Answer : Sum=0 start Read num stop r=num%10 Num>0 Num=num/10 sum=sum + r print “rvr=“,sum TrueFalse Num=123  1.  r=123 % 10 =3  Sum = 0 +3 = 3  num = 123/10 =12  2.  r =12 % 10 =2 Sum = 0 +2 = 2  num = 12/10 =1  3.  r =1 % 10 = 1  Sum = 0 +1 = 1  num = 1/10 =0 Output : 3 2 1 1) 123>0 2) 12>0 3) 1>0 4) 0>0
  • 8. Result : Through flow chart it is easy to understand the logic and sequence of problem. After drawing flowchart it becomes easy to write any program.
  • 9. 2.Algorithms :  An algorithms is a finite sequence of well defined steps or operations for solving a problem in systematic manner.  These are rules for solving any problems in proper manner. Instruction are written in the natural language. What is algorithms ?
  • 10. Types of algirithms : 1. Divide and conquer 2. Greedy method 3. Branch and bound 4. Recursion 5. effectiveness
  • 11. Pseudo code:  It is language or part of language used to convert program into easy form.  It allows the programmer to write logic of flowchart or algorithm in symbolic form.
  • 12. Pseudo code can be used for folowing situation:  Storage declaration  Assignment of any value  Procedure call  Input / output  Constant value
  • 13. Examples of algorithms : Step 1 : input number : num Step 2 : I =1 Step 3 : f =1 Step 4 : repeat from step 4 to step 6 until I<=num Step 5 : f=f*I Step 6 : i=i+1 Step 7 : print “ factorial = “,f Step 8 : stop 1.Write an algorithm to find factorial of given number :
  • 14. Examples of algorithms : Step 1 : input number : num Step 2 : sum=0 Step 3 : repeat from step 3 to step 6 until num>0 Step 4 : calculate r = num % 10 Step 5 : calculate sum = sum * 10 + r Step 6 : calculate num = num / 10 Step 7 : print “ reverse number = “,sum Step 8 : stop 2.Write an algorithm to reverse of given number :