SlideShare a Scribd company logo
Flowcharts and algorithms
Prepared by:
Ravi Bharadva 130110120007
Hemdeep Bhavsar 130110120008
Nayan Chauhan 130110120009
Chintan Kathrecha 130110120010
Chitt Kakadia 130110120011
Yashraj Chudasama 130110120012
Faculty
J.V SIR
WHAT IS ALGORITHM?
Algorithm
 An algorithm is the finite set of sequential
instructions to accomplish a task where instructions
are written in a simple English language.
 It is called as a step by step solution of the program.
 It is a well developed, organized approach to solving
complex problems.
 It refers to logic of program.
 It is step by step solution to given program.
Characteristics of algorithm
 Algorithm has four characteristics:
 Finiteness : Total number of steps used in algorithm
should be finite.
 Definiteness : Each step of algorithm must be clear
and un ambiguous.
 Effectiveness : Every step must be basic and
essential.
 Input & output: the algorithm must accept zero or
more input and must produce at least one output.
How to develop an algorithm
 First identify different inputs to be given to system.
 Then identify what output you want from the
program.
 Then create logic for it.
 Break that logic into simple steps.
 Write this steps in order.
 This forms the algorithm required from the given
logic.
Advantages Disadvantages
 Very easy to write.
 Easy technique to
understand logic.
 Easy identification of
the mistakes by non
computer person.
 Time consuming.
 Difficult to show
branching and looping.
 Big tasks are difficult to
put in algorithm.
Write an algorithm to calculate area of
rectangle.
 Step 1: accept value of length i.e l
 Step 2: Accept the value of breadth i.e b
 Step 3: calculate area. i.e a=l*b
 Step 4: print area i.e Print a.
 Step 5: stop
Create a program to get name and roll
number from user and print it!
 Step 1: Initialize name as character and roll number
as integer
 Step2: Display message “ENTER NAME:” on screen
 Step 3: Get name from user
 STEP 4: Display message “ENTER R.NO:”
 Step 5: Get Roll number from USER
 STEP 6: clear the screen
 STEP 7: Print name on screen
 STEP 8: Print roll number on screen
 STEP 9: STOP
Write an algorithm to
determine a student’s final grade and
indicate whether it is passing or failing.
The final grade is calculated as the
average of four marks.
 Step 1: input a set of 4 marks
 Step 2: calculate average of marks
 Step 3: if avg <50 then go to next step else go to step
5.
 Step 4: print fail.
 Step 5: print pass.
 Step 6: stop
Write a algorithm to find out smallest
number out of two numbers.
 Step 1: Accept Two number I.e a,b
 Step 2: check if a<b? if yes go to step 3 else go to
step 5.
 Step 3: Print a is smallest number.
 Step 4: stop
 Step 5: print b is smallest number.
 Step 6 : stop
WHAT IS FLOWCHART?
What is a flowchart?
 It is a pictorial representation of the algorithm.
 What we did in algorithm, we can represent it in
flowchart.
 This format is easy to understand.
 It shows us the flow of the instructions.
Symbols of flowchart
Name Symbol Use in flowchart
Oval Used at starting and at
ending of the program.
Flowlines Used to show direction
of the flow.
Parallelogram Used for input output
options.
Rectangle Denotes process to be
carried out.
Symbols of flowchart
round
Diamond It is used for showing
decision structure.
Round Connecting flow lines
from different places
Block Indicates block of
statements or body of
loop
Advantages Disadvantages
 Easy to draw.
 Easy technique to
understand logic.
 Easy to identify the
mistake by non
computer person.
 Easy for branching and
looping.
 Time consuming.
 Difficult for modification.
 Difficult task to draw
flow charts for big
programs.
Different operators used in programing
 Determine how one value relates to another
 Equal to ==
 Not equal to !=
 Less than <
 Greater than >
 Less than or Equal to <=
 Greater than or Equal to >=
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
flowchart & algorithms
Example : write an algorithm and flowchart for
converting length in feet to centimeter.
 Algorithm:
 Step1: input l in ft
 Step 2: L in cm= l in ft*30
 Step 3: Print l in cm.
 Flowchart:
in ft
start
Read
value of l
L in cm= l in ft*30
Print l in cm
stop
Example: write an algorithm and flowchart to
read 2 sides of rectangle and calc. its area.
 Algorithm:
 Step1: read input W,L.
 Step2: A=W*L
 Step3: print A
 Flowchart:
 Read W,L
start
Read
value of W
& L
A= L*W;A = L * W
Print area
A
stop
Any questions?
flowchart & algorithms

More Related Content

PPTX
Waterfall model
PPSX
Algorithm and flowchart
PDF
Algorithms Lecture 1: Introduction to Algorithms
PPTX
UNIVERSITY MANAGEMENT SYSTEM.pptx
PDF
SRS for student database management system
PDF
Spiral model
PPTX
Software Engineering- Crisis and Process Models
PDF
Srs library m s
Waterfall model
Algorithm and flowchart
Algorithms Lecture 1: Introduction to Algorithms
UNIVERSITY MANAGEMENT SYSTEM.pptx
SRS for student database management system
Spiral model
Software Engineering- Crisis and Process Models
Srs library m s

What's hot (20)

PPTX
Bank management sy stem
PPT
Event+driven+programming key+features
PPTX
Algorithm Design & Implementation
PPTX
Compilers
PDF
Formal Languages and Automata Theory Unit 1
PPT
Lecture 1 introduction to software engineering 1
PPT
Chapter 2 Representation Of Algorithms 2
PPTX
Language processor
PDF
Object oriented software engineering concepts
PPT
Algorithm and Flowcharts
DOCX
srs for railway reservation system
PPTX
Software myths | Software Engineering Notes
PPTX
Examination Hall Allocation
DOCX
Software Requirement Specification Of Hotel Management System
DOCX
Student information system
PPTX
Hotel-Management-System Hotel-Management-SystemHotel-Management-SystemHotel-M...
PDF
Object Oriented Analysis Design using UML
PPTX
Software Engineering tools
PPTX
Flowcharts and algorithms
PDF
Domain Modeling
Bank management sy stem
Event+driven+programming key+features
Algorithm Design & Implementation
Compilers
Formal Languages and Automata Theory Unit 1
Lecture 1 introduction to software engineering 1
Chapter 2 Representation Of Algorithms 2
Language processor
Object oriented software engineering concepts
Algorithm and Flowcharts
srs for railway reservation system
Software myths | Software Engineering Notes
Examination Hall Allocation
Software Requirement Specification Of Hotel Management System
Student information system
Hotel-Management-System Hotel-Management-SystemHotel-Management-SystemHotel-M...
Object Oriented Analysis Design using UML
Software Engineering tools
Flowcharts and algorithms
Domain Modeling
Ad

Viewers also liked (19)

PPT
Algorithmsandflowcharts1
PPT
3 algorithm-and-flowchart
PDF
algorithm
PPT
Algorithm Design
PDF
Flowchart for volume and surface area of cylinder
PPSX
Flowcharts
PPT
Pengenalan kepada pengaturcaraan berstruktur
PPT
Algorithm Design Presentation
PDF
Pak 1974-na-committe-ahmadiyya.vOL 5
PPTX
Economic environment unit6
PDF
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
PDF
Building Creative Product Extensions with Experience Manager
PDF
LODOLs
PPTX
Spine X Live2D 百萬智多星製作經驗談
PPTX
Presentation ppm ppt
PPT
Cele Album
PPT
Pass Love Charity Foundation (PLCF)
PPT
Stokvis Tapes
Algorithmsandflowcharts1
3 algorithm-and-flowchart
algorithm
Algorithm Design
Flowchart for volume and surface area of cylinder
Flowcharts
Pengenalan kepada pengaturcaraan berstruktur
Algorithm Design Presentation
Pak 1974-na-committe-ahmadiyya.vOL 5
Economic environment unit6
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
Building Creative Product Extensions with Experience Manager
LODOLs
Spine X Live2D 百萬智多星製作經驗談
Presentation ppm ppt
Cele Album
Pass Love Charity Foundation (PLCF)
Stokvis Tapes
Ad

Similar to flowchart & algorithms (20)

PDF
Logic Development and Algorithm.
PPTX
Algorithm for computational problematic sit
PDF
Problem solving methodology
PPT
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1-Algorithms-and-Flowchart PPT presentation
PPT
Lect1 - Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1-Algorithms-and-Flowchart-ppt (1).ppt
PPT
Lecture1-Algorithms-and-Flowchart-ppt.ppt
PPT
Lect1-Detailed description aboutAlgorithms-and-Flowchart.ppt
PPT
Basic Slides on Algorithms and Flowcharts
PPT
Algorithms and Flowchart usages in C laguage
PDF
AlgorithmAndFlowChart.pdf
PPT
PPTX
Flowchart and algorithm
PPTX
Algorithm and flowchart
PPTX
Introduction to python Grade 10 with exercies.pptx
PPTX
Software develop....
PPTX
Algorithm and flowchart.pptx
PPT
Algorithms and Flowchart for IGCSE Students
Logic Development and Algorithm.
Algorithm for computational problematic sit
Problem solving methodology
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowchart-ppt.ppt
Lect1-Algorithms-and-Flowchart PPT presentation
Lect1 - Algorithms-and-Flowchart-ppt.ppt
Lect1-Algorithms-and-Flowchart-ppt (1).ppt
Lecture1-Algorithms-and-Flowchart-ppt.ppt
Lect1-Detailed description aboutAlgorithms-and-Flowchart.ppt
Basic Slides on Algorithms and Flowcharts
Algorithms and Flowchart usages in C laguage
AlgorithmAndFlowChart.pdf
Flowchart and algorithm
Algorithm and flowchart
Introduction to python Grade 10 with exercies.pptx
Software develop....
Algorithm and flowchart.pptx
Algorithms and Flowchart for IGCSE Students

More from Student (15)

PPT
Solids
PPT
PROJECTION OF POINTS
PPT
Engineering Planes
PPT
Orthographic projection
PPT
Engineering line
PPSX
Engineering graphics
PPT
Engineering Curves
PPTX
Intoduction to c language
PPTX
Contributor personality development unit 2
PPTX
Gaussian elimination method & homogeneous linear equation
PPTX
Eme (air compressors)
PPTX
Noise pollution
PPTX
Land pollution
PPTX
13 mc558 eg
PPTX
Women social activities
Solids
PROJECTION OF POINTS
Engineering Planes
Orthographic projection
Engineering line
Engineering graphics
Engineering Curves
Intoduction to c language
Contributor personality development unit 2
Gaussian elimination method & homogeneous linear equation
Eme (air compressors)
Noise pollution
Land pollution
13 mc558 eg
Women social activities

Recently uploaded (20)

PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PPT
Project quality management in manufacturing
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Construction Project Organization Group 2.pptx
PDF
composite construction of structures.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
PPT on Performance Review to get promotions
Model Code of Practice - Construction Work - 21102022 .pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Safety Seminar civil to be ensured for safe working.
Project quality management in manufacturing
CH1 Production IntroductoryConcepts.pptx
UNIT 4 Total Quality Management .pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Foundation to blockchain - A guide to Blockchain Tech
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Mechanical Engineering MATERIALS Selection
Construction Project Organization Group 2.pptx
composite construction of structures.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
bas. eng. economics group 4 presentation 1.pptx
PPT on Performance Review to get promotions

flowchart & algorithms

  • 1. Flowcharts and algorithms Prepared by: Ravi Bharadva 130110120007 Hemdeep Bhavsar 130110120008 Nayan Chauhan 130110120009 Chintan Kathrecha 130110120010 Chitt Kakadia 130110120011 Yashraj Chudasama 130110120012 Faculty J.V SIR
  • 3. Algorithm  An algorithm is the finite set of sequential instructions to accomplish a task where instructions are written in a simple English language.  It is called as a step by step solution of the program.  It is a well developed, organized approach to solving complex problems.  It refers to logic of program.  It is step by step solution to given program.
  • 4. Characteristics of algorithm  Algorithm has four characteristics:  Finiteness : Total number of steps used in algorithm should be finite.  Definiteness : Each step of algorithm must be clear and un ambiguous.  Effectiveness : Every step must be basic and essential.  Input & output: the algorithm must accept zero or more input and must produce at least one output.
  • 5. How to develop an algorithm  First identify different inputs to be given to system.  Then identify what output you want from the program.  Then create logic for it.  Break that logic into simple steps.  Write this steps in order.  This forms the algorithm required from the given logic.
  • 6. Advantages Disadvantages  Very easy to write.  Easy technique to understand logic.  Easy identification of the mistakes by non computer person.  Time consuming.  Difficult to show branching and looping.  Big tasks are difficult to put in algorithm.
  • 7. Write an algorithm to calculate area of rectangle.  Step 1: accept value of length i.e l  Step 2: Accept the value of breadth i.e b  Step 3: calculate area. i.e a=l*b  Step 4: print area i.e Print a.  Step 5: stop
  • 8. Create a program to get name and roll number from user and print it!  Step 1: Initialize name as character and roll number as integer  Step2: Display message “ENTER NAME:” on screen  Step 3: Get name from user  STEP 4: Display message “ENTER R.NO:”  Step 5: Get Roll number from USER  STEP 6: clear the screen  STEP 7: Print name on screen  STEP 8: Print roll number on screen  STEP 9: STOP
  • 9. Write an algorithm to determine a student’s final grade and indicate whether it is passing or failing. The final grade is calculated as the average of four marks.  Step 1: input a set of 4 marks  Step 2: calculate average of marks  Step 3: if avg <50 then go to next step else go to step 5.  Step 4: print fail.  Step 5: print pass.  Step 6: stop
  • 10. Write a algorithm to find out smallest number out of two numbers.  Step 1: Accept Two number I.e a,b  Step 2: check if a<b? if yes go to step 3 else go to step 5.  Step 3: Print a is smallest number.  Step 4: stop  Step 5: print b is smallest number.  Step 6 : stop
  • 12. What is a flowchart?  It is a pictorial representation of the algorithm.  What we did in algorithm, we can represent it in flowchart.  This format is easy to understand.  It shows us the flow of the instructions.
  • 13. Symbols of flowchart Name Symbol Use in flowchart Oval Used at starting and at ending of the program. Flowlines Used to show direction of the flow. Parallelogram Used for input output options. Rectangle Denotes process to be carried out.
  • 14. Symbols of flowchart round Diamond It is used for showing decision structure. Round Connecting flow lines from different places Block Indicates block of statements or body of loop
  • 15. Advantages Disadvantages  Easy to draw.  Easy technique to understand logic.  Easy to identify the mistake by non computer person.  Easy for branching and looping.  Time consuming.  Difficult for modification.  Difficult task to draw flow charts for big programs.
  • 16. Different operators used in programing  Determine how one value relates to another  Equal to ==  Not equal to !=  Less than <  Greater than >  Less than or Equal to <=  Greater than or Equal to >=
  • 28. Example : write an algorithm and flowchart for converting length in feet to centimeter.  Algorithm:  Step1: input l in ft  Step 2: L in cm= l in ft*30  Step 3: Print l in cm.  Flowchart: in ft start Read value of l L in cm= l in ft*30 Print l in cm stop
  • 29. Example: write an algorithm and flowchart to read 2 sides of rectangle and calc. its area.  Algorithm:  Step1: read input W,L.  Step2: A=W*L  Step3: print A  Flowchart:  Read W,L start Read value of W & L A= L*W;A = L * W Print area A stop