Algorithm and flowchart

Rabin BK
Rabin BKStudent at College Of Applied Business (Studying BSc.CSIT) em School
Algorithm and Flowchart
1
Presented by: The Anonymous
BSc.CSIT 1st semester
What is algorithm ?
Properties of algorithm
What is flowchart ?
Merits of flowchart
Demerits of flowchart
Algorithm and Flowchart in Coding
References
Queries
2
What is an algorithm ?
Named after Persian mathematician Mohammad Al-
Khwarizmi
A sequential solution of any problem
Written in human understandable form
Requires a clear understanding of the problem
3
Example:
1. Algorithm for sum of two numbers
Step 1: Start
Step 2: Enter two numbers in a and b
Step 3: Add a and b and store in c
Step 4: Display c
Step 5: End
4
2. Algorithm to check whether the input number is
even or odd
Step 1: Start
Step 2: Enter a number in a
Step 3: Check if it is even or odd
Step 4: If even print “even” (a mod 2 = 0 )
Step 5: Else print “odd”
Step 6: End
5
Properties of algorithm
Finiteness
Properly defined
Input
Output
Effectiveness
Independent to any other programming language
6
7
Now moving on to next
programming tool
What is flowchart?
Diagrammatic representation of algorithm
An important programming tool
Solving a problem using figures
Different figures having different functions
8
Merits of flowchart
•Easy to explain program logic
•Makes coding effective and faster
•Effective communication
•Different symbols used
•Serve as documentation
•Easy to detect, locate and remove bugs in a program
9
Time consuming and monotonous job
Difficult to maintain
Occupies space while documentation
Translation to computer program is difficult
10
11
But what
might be the
symbols used
in flowchart?
Symbol Function Description
Start/End Start and end point
Input/output Input and output operations
Processing operation Editing and calculation of data
Decision Check logical condition
Connector Indicates logical flow from one
page to another
Direction of logic Direction of flow of logic
Comment Indicates any comments for
explanatory notes
12
Example 1: Flowchart add sum of two numbers
13
START
Input a and b
C = a + b
Display c
END
User can enter
any two numbers
Example 2: Flowchart to check whether the input number is
even or odd
14
START
Accept a number
Divide it by 2
END
Is remainder = 0 ?
Display odd Display even
YesNo
START
Accept a number
15
Using Algorithm and Flowchart in Coding
Coding
Enter numbers in a and b: 5
6
Displayed c: 11
References:
Websites:
google.com
wikipedia.com
linkedin.com
External sources:
Text book: Fundamentals of computer programming
16
Queries
17
1 de 17

Recomendados

Algorithms and Flowcharts por
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
309.9K visualizações31 slides
Flowcharts and algorithms por
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
5.9K visualizações12 slides
Algorithm and flowchart por
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
7.1K visualizações34 slides
Algorithm and flowchart por
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartElizabeth de Leon Aler
87.3K visualizações9 slides
Algorithm por
AlgorithmAlgorithm
AlgorithmIHTISHAM UL HAQ
7.7K visualizações16 slides
Algorithms, flow charts and pseudocodes por
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesSatveer Mann
377 visualizações15 slides

Mais conteúdo relacionado

Mais procurados

Algorithm and pseudo codes por
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
48.2K visualizações44 slides
What is an algorithm? por
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
18.5K visualizações33 slides
Notes of c programming 1st unit BCA I SEM por
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEMMansi Tyagi
150K visualizações25 slides
Unit 1-problem solving with algorithm por
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithmrajkumar1631010038
6.9K visualizações26 slides
Introduction to data structures and Algorithm por
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
45.6K visualizações73 slides
Algorithm and flowchart por
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart Shivam Sharma
168 visualizações12 slides

Mais procurados(20)

Algorithm and pseudo codes por hermiraguilar
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
hermiraguilar48.2K visualizações
What is an algorithm? por Angela DeHart
What is an algorithm?What is an algorithm?
What is an algorithm?
Angela DeHart18.5K visualizações
Notes of c programming 1st unit BCA I SEM por Mansi Tyagi
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
Mansi Tyagi150K visualizações
Unit 1-problem solving with algorithm por rajkumar1631010038
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar16310100386.9K visualizações
Introduction to data structures and Algorithm por Dhaval Kaneria
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
Dhaval Kaneria45.6K visualizações
Algorithm and flowchart por Shivam Sharma
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart
Shivam Sharma168 visualizações
Basic programming concepts por salmankhan570
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan57010.8K visualizações
Features of machine language, assembly language, high level language & their ... por SHUBHAM PATIDAR FISHERIES ADDAA
Features of machine language, assembly language, high level language & their ...Features of machine language, assembly language, high level language & their ...
Features of machine language, assembly language, high level language & their ...
SHUBHAM PATIDAR FISHERIES ADDAA27.7K visualizações
Introduction to flowchart por Jordan Delacruz
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
Jordan Delacruz70.8K visualizações
Unit 1. Problem Solving with Computer por Ashim Lamichhane
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
Ashim Lamichhane35.3K visualizações
Algorithm and c language por kamalbeydoun
Algorithm and c languageAlgorithm and c language
Algorithm and c language
kamalbeydoun1.3K visualizações
10. switch case por Way2itech
10. switch case10. switch case
10. switch case
Way2itech7.9K visualizações
Expression and Operartor In C Programming por Kamal Acharya
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming
Kamal Acharya4.1K visualizações
Flowchart and algorithem por ehsanullah786
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
ehsanullah7863.3K visualizações
Operators in C Programming por programming9
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
programming937.8K visualizações
Introduction to Compiler design por Dr. C.V. Suresh Babu
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
Dr. C.V. Suresh Babu6.4K visualizações
Variables in C Programming por programming9
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
programming99.1K visualizações
High level and Low level Language por adnan usmani
High level and Low level Language High level and Low level Language
High level and Low level Language
adnan usmani4.4K visualizações

Destaque

3 algorithm-and-flowchart por
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchartRohit Shrivastava
15.1K visualizações37 slides
Flowchart and algorithm por
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmSayali Shivarkar
69.8K visualizações10 slides
Algorithm and flowchart2010 por
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
22.5K visualizações12 slides
Flowchart Power Point por
Flowchart Power PointFlowchart Power Point
Flowchart Power PointSlideShop.com
974 visualizações16 slides
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart por
C Prog. - Introduction to Hardware, Software, Algorithm & FlowchartC Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchartvinay arora
9K visualizações43 slides
Flowchart por
FlowchartFlowchart
FlowchartGautam Roy
15.2K visualizações73 slides

Destaque(20)

3 algorithm-and-flowchart por Rohit Shrivastava
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
Rohit Shrivastava15.1K visualizações
Flowchart and algorithm por Sayali Shivarkar
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
Sayali Shivarkar69.8K visualizações
Algorithm and flowchart2010 por Jordan Delacruz
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
Jordan Delacruz22.5K visualizações
Flowchart Power Point por SlideShop.com
Flowchart Power PointFlowchart Power Point
Flowchart Power Point
SlideShop.com974 visualizações
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart por vinay arora
C Prog. - Introduction to Hardware, Software, Algorithm & FlowchartC Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
vinay arora9K visualizações
Flowchart por Gautam Roy
FlowchartFlowchart
Flowchart
Gautam Roy15.2K visualizações
Programming process and flowchart por hermiraguilar
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
hermiraguilar9.6K visualizações
Pseudocode-Flowchart por lotlot
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
lotlot38.5K visualizações
Writing algorithms por Krishna Chaytaniah
Writing algorithmsWriting algorithms
Writing algorithms
Krishna Chaytaniah111.3K visualizações
Flowchart Diagram Templates by Creately por Creately
Flowchart Diagram Templates by CreatelyFlowchart Diagram Templates by Creately
Flowchart Diagram Templates by Creately
Creately5.7K visualizações
Flowchart por HRdebajit
FlowchartFlowchart
Flowchart
HRdebajit23.1K visualizações
Sales flowchart por Ashish Khoyani
Sales flowchartSales flowchart
Sales flowchart
Ashish Khoyani54.2K visualizações
Algorithmsandflowcharts1 por luhkahreth
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
luhkahreth49.7K visualizações
Algorithm and flowchart por IamPe Khamkhum
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
IamPe Khamkhum743 visualizações
C lects (3) por Mongoo Dashjav
C lects (3)C lects (3)
C lects (3)
Mongoo Dashjav697 visualizações
Best Techniques To Design Programs - Program Designing Techniques por Tech
Best Techniques To Design Programs - Program Designing TechniquesBest Techniques To Design Programs - Program Designing Techniques
Best Techniques To Design Programs - Program Designing Techniques
Tech849 visualizações
Microcontroller lec 3 por Ibrahim Reda
Microcontroller  lec 3Microcontroller  lec 3
Microcontroller lec 3
Ibrahim Reda373 visualizações
Flowchart w/program structure por nasa9084
Flowchart w/program structureFlowchart w/program structure
Flowchart w/program structure
nasa9084 424 visualizações
Best Flow Chart Ever por skillfulyards
Best Flow Chart EverBest Flow Chart Ever
Best Flow Chart Ever
skillfulyards1.2K visualizações
Creating a program from flowchart por Max Friel
Creating a program from flowchartCreating a program from flowchart
Creating a program from flowchart
Max Friel9K visualizações

Similar a Algorithm and flowchart

flowchart & algorithms por
flowchart & algorithmsflowchart & algorithms
flowchart & algorithmsStudent
7K visualizações31 slides
Programming flowcharts for C Language por
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C LanguageAryan Ajmer
44.2K visualizações22 slides
lecture 5 por
 lecture 5 lecture 5
lecture 5umardanjumamaiwada
191 visualizações25 slides
Introduction to computer science por
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
86 visualizações25 slides
Chap6 por
Chap6Chap6
Chap6artipradhan
2.7K visualizações21 slides
Algorithm pseudocode flowchart program notes por
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notesArghodeepPaul
61 visualizações6 slides

Similar a Algorithm and flowchart(20)

flowchart & algorithms por Student
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student7K visualizações
Programming flowcharts for C Language por Aryan Ajmer
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C Language
Aryan Ajmer44.2K visualizações
Introduction to computer science por umardanjumamaiwada
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
umardanjumamaiwada86 visualizações
Chap6 por artipradhan
Chap6Chap6
Chap6
artipradhan2.7K visualizações
Algorithm pseudocode flowchart program notes por ArghodeepPaul
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
ArghodeepPaul61 visualizações
Flowcharting and Algorithm por Zeinna Belle Desamito
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
Zeinna Belle Desamito855 visualizações
AlgorithmAndFlowChart.pdf por SusieMaestre1
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1118 visualizações
algorithms and flow chart overview.pdf por AmanPratik11
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11189 visualizações
Algorithm and flowchart.pptx por MaheShiva
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
MaheShiva491 visualizações
Algorithm Design & Implementation por Gaditek
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & Implementation
Gaditek3.9K visualizações
Output And Lt Essay por Jana Clark
Output And Lt EssayOutput And Lt Essay
Output And Lt Essay
Jana Clark2 visualizações
Fundamentals of Programming Chapter 3 por Mohd Harris Ahmad Jaal
Fundamentals of Programming Chapter 3Fundamentals of Programming Chapter 3
Fundamentals of Programming Chapter 3
Mohd Harris Ahmad Jaal129 visualizações
Introduction to algorithms por subhashchandra197
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithms
subhashchandra197448 visualizações
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx por AbdelrahmanRagab36
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab3623 visualizações
learn computer science.ppt por faithola1
learn computer science.pptlearn computer science.ppt
learn computer science.ppt
faithola13 visualizações
programming concept por Nehabhy
programming conceptprogramming concept
programming concept
Nehabhy900 visualizações
final Unit 1-1.pdf por prakashvs7
final Unit 1-1.pdffinal Unit 1-1.pdf
final Unit 1-1.pdf
prakashvs73 visualizações

Mais de Rabin BK

Artificial Intelligence in E-commerce por
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerceRabin BK
1K visualizações11 slides
Three address code generation por
Three address code generationThree address code generation
Three address code generationRabin BK
672 visualizações10 slides
Consumer Oriented Application, Mercantile process and Mercantile models por
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile modelsRabin BK
4.1K visualizações9 slides
Clang compiler ` por
Clang compiler `Clang compiler `
Clang compiler `Rabin BK
275 visualizações10 slides
Simple Mail Transfer Protocol por
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolRabin BK
175 visualizações8 slides
HTML text formatting tags por
HTML text formatting tagsHTML text formatting tags
HTML text formatting tagsRabin BK
886 visualizações7 slides

Mais de Rabin BK(20)

Artificial Intelligence in E-commerce por Rabin BK
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerce
Rabin BK1K visualizações
Three address code generation por Rabin BK
Three address code generationThree address code generation
Three address code generation
Rabin BK672 visualizações
Consumer Oriented Application, Mercantile process and Mercantile models por Rabin BK
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile models
Rabin BK4.1K visualizações
Clang compiler ` por Rabin BK
Clang compiler `Clang compiler `
Clang compiler `
Rabin BK275 visualizações
Simple Mail Transfer Protocol por Rabin BK
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
Rabin BK175 visualizações
HTML text formatting tags por Rabin BK
HTML text formatting tagsHTML text formatting tags
HTML text formatting tags
Rabin BK886 visualizações
Data encryption in database management system por Rabin BK
Data encryption in database management systemData encryption in database management system
Data encryption in database management system
Rabin BK1.2K visualizações
Object Relational Database Management System(ORDBMS) por Rabin BK
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
Rabin BK2.5K visualizações
Kolmogorov Smirnov por Rabin BK
Kolmogorov SmirnovKolmogorov Smirnov
Kolmogorov Smirnov
Rabin BK861 visualizações
Job sequencing in Data Strcture por Rabin BK
Job sequencing in Data StrctureJob sequencing in Data Strcture
Job sequencing in Data Strcture
Rabin BK550 visualizações
Stack Data Structure por Rabin BK
Stack Data StructureStack Data Structure
Stack Data Structure
Rabin BK280 visualizações
Bluetooth por Rabin BK
BluetoothBluetooth
Bluetooth
Rabin BK50 visualizações
Data Science por Rabin BK
Data ScienceData Science
Data Science
Rabin BK199 visualizações
Graphics_3D viewing por Rabin BK
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
Rabin BK392 visualizações
Neural Netwrok por Rabin BK
Neural NetwrokNeural Netwrok
Neural Netwrok
Rabin BK139 visualizações
Watermarking in digital images por Rabin BK
Watermarking in digital imagesWatermarking in digital images
Watermarking in digital images
Rabin BK51 visualizações
Heun's Method por Rabin BK
Heun's MethodHeun's Method
Heun's Method
Rabin BK2K visualizações
Mutual Exclusion por Rabin BK
Mutual ExclusionMutual Exclusion
Mutual Exclusion
Rabin BK355 visualizações
Systems Usage por Rabin BK
Systems UsageSystems Usage
Systems Usage
Rabin BK19 visualizações
Manager of a company por Rabin BK
Manager of a companyManager of a company
Manager of a company
Rabin BK62 visualizações

Último

Jibachha publishing Textbook.docx por
Jibachha publishing Textbook.docxJibachha publishing Textbook.docx
Jibachha publishing Textbook.docxDrJibachhaSahVetphys
51 visualizações14 slides
Create a Structure in VBNet.pptx por
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptxBreach_P
78 visualizações8 slides
CONTENTS.pptx por
CONTENTS.pptxCONTENTS.pptx
CONTENTS.pptxiguerendiain
62 visualizações17 slides
Recap of our Class por
Recap of our ClassRecap of our Class
Recap of our ClassCorinne Weisgerber
88 visualizações15 slides
UNIDAD 3 6º C.MEDIO.pptx por
UNIDAD 3 6º C.MEDIO.pptxUNIDAD 3 6º C.MEDIO.pptx
UNIDAD 3 6º C.MEDIO.pptxMarcosRodriguezUcedo
134 visualizações32 slides
Volf work.pdf por
Volf work.pdfVolf work.pdf
Volf work.pdfMariaKenney3
54 visualizações43 slides

Último(20)

Jibachha publishing Textbook.docx por DrJibachhaSahVetphys
Jibachha publishing Textbook.docxJibachha publishing Textbook.docx
Jibachha publishing Textbook.docx
DrJibachhaSahVetphys51 visualizações
Create a Structure in VBNet.pptx por Breach_P
Create a Structure in VBNet.pptxCreate a Structure in VBNet.pptx
Create a Structure in VBNet.pptx
Breach_P78 visualizações
CONTENTS.pptx por iguerendiain
CONTENTS.pptxCONTENTS.pptx
CONTENTS.pptx
iguerendiain62 visualizações
UNIDAD 3 6º C.MEDIO.pptx por MarcosRodriguezUcedo
UNIDAD 3 6º C.MEDIO.pptxUNIDAD 3 6º C.MEDIO.pptx
UNIDAD 3 6º C.MEDIO.pptx
MarcosRodriguezUcedo134 visualizações
Volf work.pdf por MariaKenney3
Volf work.pdfVolf work.pdf
Volf work.pdf
MariaKenney354 visualizações
A-Level Art por WestHatch
A-Level ArtA-Level Art
A-Level Art
WestHatch46 visualizações
EILO EXCURSION PROGRAMME 2023 por info33492
EILO EXCURSION PROGRAMME 2023EILO EXCURSION PROGRAMME 2023
EILO EXCURSION PROGRAMME 2023
info33492109 visualizações
JQUERY.pdf por ArthyR3
JQUERY.pdfJQUERY.pdf
JQUERY.pdf
ArthyR381 visualizações
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptx por Debapriya Chakraborty
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptxGopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Debapriya Chakraborty695 visualizações
Class 9 lesson plans por TARIQ KHAN
Class 9 lesson plansClass 9 lesson plans
Class 9 lesson plans
TARIQ KHAN51 visualizações
ICS3211_lecture 09_2023.pdf por Vanessa Camilleri
ICS3211_lecture 09_2023.pdfICS3211_lecture 09_2023.pdf
ICS3211_lecture 09_2023.pdf
Vanessa Camilleri115 visualizações
CUNY IT Picciano.pptx por apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 visualizações
Purpose of maths student display.pptx por christianmathematics
Purpose of maths student display.pptxPurpose of maths student display.pptx
Purpose of maths student display.pptx
christianmathematics87 visualizações
STRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdf por Dr Vijay Vishwakarma
STRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdfSTRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdf
STRATEGIC MANAGEMENT MODULE 1_UNIT1 _UNIT2.pdf
Dr Vijay Vishwakarma70 visualizações
MercerJesse2.1Doc.pdf por jessemercerail
MercerJesse2.1Doc.pdfMercerJesse2.1Doc.pdf
MercerJesse2.1Doc.pdf
jessemercerail273 visualizações
Relationship of psychology with other subjects. por palswagata2003
Relationship of psychology with other subjects.Relationship of psychology with other subjects.
Relationship of psychology with other subjects.
palswagata200352 visualizações
Monthly Information Session for MV Asterix (November) por Esquimalt MFRC
Monthly Information Session for MV Asterix (November)Monthly Information Session for MV Asterix (November)
Monthly Information Session for MV Asterix (November)
Esquimalt MFRC72 visualizações

Algorithm and flowchart

  • 1. Algorithm and Flowchart 1 Presented by: The Anonymous BSc.CSIT 1st semester
  • 2. What is algorithm ? Properties of algorithm What is flowchart ? Merits of flowchart Demerits of flowchart Algorithm and Flowchart in Coding References Queries 2
  • 3. What is an algorithm ? Named after Persian mathematician Mohammad Al- Khwarizmi A sequential solution of any problem Written in human understandable form Requires a clear understanding of the problem 3
  • 4. Example: 1. Algorithm for sum of two numbers Step 1: Start Step 2: Enter two numbers in a and b Step 3: Add a and b and store in c Step 4: Display c Step 5: End 4
  • 5. 2. Algorithm to check whether the input number is even or odd Step 1: Start Step 2: Enter a number in a Step 3: Check if it is even or odd Step 4: If even print “even” (a mod 2 = 0 ) Step 5: Else print “odd” Step 6: End 5
  • 6. Properties of algorithm Finiteness Properly defined Input Output Effectiveness Independent to any other programming language 6
  • 7. 7 Now moving on to next programming tool
  • 8. What is flowchart? Diagrammatic representation of algorithm An important programming tool Solving a problem using figures Different figures having different functions 8
  • 9. Merits of flowchart •Easy to explain program logic •Makes coding effective and faster •Effective communication •Different symbols used •Serve as documentation •Easy to detect, locate and remove bugs in a program 9
  • 10. Time consuming and monotonous job Difficult to maintain Occupies space while documentation Translation to computer program is difficult 10
  • 11. 11 But what might be the symbols used in flowchart?
  • 12. Symbol Function Description Start/End Start and end point Input/output Input and output operations Processing operation Editing and calculation of data Decision Check logical condition Connector Indicates logical flow from one page to another Direction of logic Direction of flow of logic Comment Indicates any comments for explanatory notes 12
  • 13. Example 1: Flowchart add sum of two numbers 13 START Input a and b C = a + b Display c END User can enter any two numbers
  • 14. Example 2: Flowchart to check whether the input number is even or odd 14 START Accept a number Divide it by 2 END Is remainder = 0 ? Display odd Display even YesNo START Accept a number
  • 15. 15 Using Algorithm and Flowchart in Coding Coding Enter numbers in a and b: 5 6 Displayed c: 11