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 >=
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

What's hot

Algo and flowchart
Algo and flowchartAlgo and flowchart
Algo and flowchart
Swapnil Suryavanshi
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
hamza javed
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
Adam Mukharil Bachtiar
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
mshellman
 
Algorithm Development
Algorithm DevelopmentAlgorithm Development
Algorithm Development
ALI RAZA
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to PseudocodeDamian T. Gordon
 
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHMCLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
Rc Os
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
Loops c++
Loops c++Loops c++
Loops c++
Shivani Singh
 
Algorithm and c language
Algorithm and c languageAlgorithm and c language
Algorithm and c language
kamalbeydoun
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming conceptssalmankhan570
 
All You Need to Know About Java – Advantages and Disadvantages
All You Need to Know About Java – Advantages and DisadvantagesAll You Need to Know About Java – Advantages and Disadvantages
All You Need to Know About Java – Advantages and Disadvantages
carolynebert3007
 
C tokens
C tokensC tokens
C tokens
Manu1325
 
Basics of python
Basics of pythonBasics of python
Basics of python
SurjeetSinghSurjeetS
 
Break and continue in C
Break and continue in C Break and continue in C
Break and continue in C
vishnupriyapm4
 
What is identifier c programming
What is identifier c programmingWhat is identifier c programming
What is identifier c programming
Rumman Ansari
 
Loops in Python
Loops in PythonLoops in Python
Loops in Python
AbhayDhupar
 
Algorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanAlgorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb Khan
Haseeb Shalmani
 

What's hot (20)

Algo and flowchart
Algo and flowchartAlgo and flowchart
Algo and flowchart
 
Algorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo code
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
 
Chapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to ProgrammingChapter 1 - An Introduction to Programming
Chapter 1 - An Introduction to Programming
 
Algorithm Development
Algorithm DevelopmentAlgorithm Development
Algorithm Development
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHMCLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
 
Loops c++
Loops c++Loops c++
Loops c++
 
Algorithm and c language
Algorithm and c languageAlgorithm and c language
Algorithm and c language
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
All You Need to Know About Java – Advantages and Disadvantages
All You Need to Know About Java – Advantages and DisadvantagesAll You Need to Know About Java – Advantages and Disadvantages
All You Need to Know About Java – Advantages and Disadvantages
 
Qbasic
QbasicQbasic
Qbasic
 
C tokens
C tokensC tokens
C tokens
 
Basics of python
Basics of pythonBasics of python
Basics of python
 
Break and continue in C
Break and continue in C Break and continue in C
Break and continue in C
 
What is identifier c programming
What is identifier c programmingWhat is identifier c programming
What is identifier c programming
 
Loops in Python
Loops in PythonLoops in Python
Loops in Python
 
Algorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb KhanAlgorithms and flowcharts by Haseeb Khan
Algorithms and flowcharts by Haseeb Khan
 

Viewers also liked

Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1luhkahreth
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
Rohit Shrivastava
 
Algorithm Design
Algorithm DesignAlgorithm Design
Algorithm Design
MD.ASHIQUZZAMAN KHONDAKER
 
Flowchart for volume and surface area of cylinder
Flowchart for volume and surface area of cylinderFlowchart for volume and surface area of cylinder
Flowchart for volume and surface area of cylinderMaurice
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
Student
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
Mukesh Tekwani
 
Pengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturPengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturUnit Kediaman Luar Kampus
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design Presentation
Kawsar Ahmed
 
Pak 1974-na-committe-ahmadiyya.vOL 5
Pak 1974-na-committe-ahmadiyya.vOL 5Pak 1974-na-committe-ahmadiyya.vOL 5
Pak 1974-na-committe-ahmadiyya.vOL 5
muzaffertahir9
 
Economic environment unit6
Economic environment unit6Economic environment unit6
Economic environment unit6
UNBFS
 
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
dataotuan
 
Building Creative Product Extensions with Experience Manager
Building Creative Product Extensions with Experience ManagerBuilding Creative Product Extensions with Experience Manager
Building Creative Product Extensions with Experience Manager
connectwebex
 
Spine X Live2D 百萬智多星製作經驗談
Spine X Live2D 百萬智多星製作經驗談Spine X Live2D 百萬智多星製作經驗談
Spine X Live2D 百萬智多星製作經驗談
Scissor Lee
 
Cele Album
Cele AlbumCele Album
Cele Album
casjenni
 
Pass Love Charity Foundation (PLCF)
Pass Love Charity Foundation (PLCF)Pass Love Charity Foundation (PLCF)
Pass Love Charity Foundation (PLCF)
PassLoveCharity
 
Stokvis Tapes
Stokvis TapesStokvis Tapes
Stokvis Tapes
stokvis
 

Viewers also liked (20)

Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
algorithm
algorithmalgorithm
algorithm
 
Algorithm Design
Algorithm DesignAlgorithm Design
Algorithm Design
 
Flowchart for volume and surface area of cylinder
Flowchart for volume and surface area of cylinderFlowchart for volume and surface area of cylinder
Flowchart for volume and surface area of cylinder
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
 
Flowcharts
FlowchartsFlowcharts
Flowcharts
 
Pengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstrukturPengenalan kepada pengaturcaraan berstruktur
Pengenalan kepada pengaturcaraan berstruktur
 
Algorithm Design Presentation
Algorithm Design PresentationAlgorithm Design Presentation
Algorithm Design Presentation
 
Pak 1974-na-committe-ahmadiyya.vOL 5
Pak 1974-na-committe-ahmadiyya.vOL 5Pak 1974-na-committe-ahmadiyya.vOL 5
Pak 1974-na-committe-ahmadiyya.vOL 5
 
Economic environment unit6
Economic environment unit6Economic environment unit6
Economic environment unit6
 
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
What's a Good Chinese Daily Deal - A Market Analysis - May 2011 - Dataotuan.com
 
Building Creative Product Extensions with Experience Manager
Building Creative Product Extensions with Experience ManagerBuilding Creative Product Extensions with Experience Manager
Building Creative Product Extensions with Experience Manager
 
LODOLs
LODOLsLODOLs
LODOLs
 
Spine X Live2D 百萬智多星製作經驗談
Spine X Live2D 百萬智多星製作經驗談Spine X Live2D 百萬智多星製作經驗談
Spine X Live2D 百萬智多星製作經驗談
 
Presentation ppm ppt
Presentation ppm pptPresentation ppm ppt
Presentation ppm ppt
 
Cele Album
Cele AlbumCele Album
Cele Album
 
Pass Love Charity Foundation (PLCF)
Pass Love Charity Foundation (PLCF)Pass Love Charity Foundation (PLCF)
Pass Love Charity Foundation (PLCF)
 
Stokvis Tapes
Stokvis TapesStokvis Tapes
Stokvis Tapes
 
Info penting
Info pentingInfo penting
Info penting
 

Similar to flowchart & algorithms

Logic Development and Algorithm.
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
NandiniSidana
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
Saurabh846965
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
Prof. Dr. K. Adisesha
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
ReshuReshma8
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
moazwinner
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
DHANIK VIKRANT
 
Software develop....
Software develop.... Software develop....
Software develop....
GCWUS
 
Algorithm and flowchart.pptx
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
MaheShiva
 
ALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdf
meychu1
 
Algorithms and Flowchart.ppt
Algorithms and Flowchart.pptAlgorithms and Flowchart.ppt
Algorithms and Flowchart.ppt
MsKGowriDhilipkumar
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar1631010038
 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
ShaswatSurya
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
umardanjumamaiwada
 
lecture 5
 lecture 5 lecture 5
lecture 5
umardanjumamaiwada
 
Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
cosc242101003
 
Chapter 2 representation of algorithms 2
Chapter 2 representation of algorithms 2Chapter 2 representation of algorithms 2
Chapter 2 representation of algorithms 2Li-Anne Serrano
 

Similar to flowchart & algorithms (20)

Logic Development and Algorithm.
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
 
Chap6
Chap6Chap6
Chap6
 
Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Software develop....
Software develop.... Software develop....
Software develop....
 
Algorithm and flowchart.pptx
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
 
ALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdf
 
Algorithms and Flowchart.ppt
Algorithms and Flowchart.pptAlgorithms and Flowchart.ppt
Algorithms and Flowchart.ppt
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
 
Chapter 2 representation of algorithms 2
Chapter 2 representation of algorithms 2Chapter 2 representation of algorithms 2
Chapter 2 representation of algorithms 2
 

More from Student

Solids
SolidsSolids
Solids
Student
 
PROJECTION OF POINTS
PROJECTION OF POINTSPROJECTION OF POINTS
PROJECTION OF POINTS
Student
 
Engineering Planes
Engineering PlanesEngineering Planes
Engineering Planes
Student
 
Orthographic projection
Orthographic projectionOrthographic projection
Orthographic projection
Student
 
Engineering line
Engineering lineEngineering line
Engineering line
Student
 
Engineering graphics
Engineering graphicsEngineering graphics
Engineering graphics
Student
 
Engineering Curves
Engineering CurvesEngineering Curves
Engineering Curves
Student
 
Intoduction to c language
Intoduction to c languageIntoduction to c language
Intoduction to c language
Student
 
Contributor personality development unit 2
Contributor personality  development unit 2Contributor personality  development unit 2
Contributor personality development unit 2Student
 
Gaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equationGaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equation
Student
 
Eme (air compressors)
Eme (air compressors)Eme (air compressors)
Eme (air compressors)
Student
 
Noise pollution
Noise pollutionNoise pollution
Noise pollutionStudent
 
Land pollution
Land pollutionLand pollution
Land pollutionStudent
 
13 mc558 eg
13 mc558 eg13 mc558 eg
13 mc558 eg
Student
 
Women social activities
Women social activitiesWomen social activities
Women social activitiesStudent
 

More from Student (15)

Solids
SolidsSolids
Solids
 
PROJECTION OF POINTS
PROJECTION OF POINTSPROJECTION OF POINTS
PROJECTION OF POINTS
 
Engineering Planes
Engineering PlanesEngineering Planes
Engineering Planes
 
Orthographic projection
Orthographic projectionOrthographic projection
Orthographic projection
 
Engineering line
Engineering lineEngineering line
Engineering line
 
Engineering graphics
Engineering graphicsEngineering graphics
Engineering graphics
 
Engineering Curves
Engineering CurvesEngineering Curves
Engineering Curves
 
Intoduction to c language
Intoduction to c languageIntoduction to c language
Intoduction to c language
 
Contributor personality development unit 2
Contributor personality  development unit 2Contributor personality  development unit 2
Contributor personality development unit 2
 
Gaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equationGaussian elimination method & homogeneous linear equation
Gaussian elimination method & homogeneous linear equation
 
Eme (air compressors)
Eme (air compressors)Eme (air compressors)
Eme (air compressors)
 
Noise pollution
Noise pollutionNoise pollution
Noise pollution
 
Land pollution
Land pollutionLand pollution
Land pollution
 
13 mc558 eg
13 mc558 eg13 mc558 eg
13 mc558 eg
 
Women social activities
Women social activitiesWomen social activities
Women social activities
 

Recently uploaded

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 

Recently uploaded (20)

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 

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 >=
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 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