SlideShare a Scribd company logo
1 of 27
CLASS : 7
Subject : Computer
Topic: programming technique
Good morning
students
introduction
 Computers can not perform any task on their own.
 They need instruction to tell them what to do , how to do
and when to do.
 A set of instruction that direct the computer to do a
specific task is called a program.
 A task is actually a problem that is tracked by a
programmer.
 Programming problem need to be divided in to smaller
step .
Continue…….
 So that each step can be formulated in the form of an
instruction written in a programming languages.
 The activity is termed as a computer programming.
 Computer programming is a sequence of steps requires
for a solving a problem with the help of computer
programming are algorithm , flowchart and pseudo
code(source code).
An algorithm is a step by step
procedures to solve a particular
problem.
It has a finite number of steps.
To write algorithm , we use simple
English language.
General rules for writing an Algorithms:
 An algorithm should have finite number
of steps.
 Algorithm should not dependent on a
particular computer language.
 The step should be executable by
computer.
 Algorithm is independent of
programming language.
 An algorithm must produce an output.
Characteristics of Algorithms:
 Precision – the steps are precisely
stated(defined).
 Uniqueness – results of each step are
uniquely defined and only depend on the
input and the result of the preceding steps.
 Finiteness – the algorithm stops after a finite
number of instructions are executed.
 Input – the algorithm receives input.
 Output – the algorithm produces output.
 Generality – the algorithm applies to a set of
Advantages of algorithm
 It is a step-wise representation of a solution
to a given problem, which makes it easy to
understand
 It is not dependent on any programming
language, so it is easy to understand for
anyone even without programming
knowledge.
 Every step in an algorithm has its own
logical sequence so it is easy to debug.
 By using algorithm, the problem is broken
down into smaller pieces or steps hence, it
Disadvantages of algorithm
 Algorithms is Time consuming.
 Difficult to show Branching and
Looping in Algorithms.
 Big tasks are difficult to put in
Algorithms
 Writing algorithm takes a long time.
 An Algorithm is not a computer
program, it is rather a concept of how
a program should be.
solved examples
1. Write an algorithm to give instruction for making maggi
noodles as a food.
 Step 1: Start
 Step 2: Take pan with water
 Step 3: Put pan on the burner
 Step 4: Switch on the gas/burner
 Step 5: Put magi and masala
 Step 6: Give two minutes to boil
 Step 7: Take off the pan
 Step 8: Take out the magi with the help of fork/spoon
 Step 9: Put the Maggi on the plate and serve it
 Step 10: Stop
solved examples
1. Write an algorithm to make cup of tea.
 Step 1:Put the teabag in a cup.
 Step 2:Fill the kettle with water.
 Step 3:Boil the water in the kettle.
 Step 4:Pour some of the boiled water into
the cup.
 Step 5:Add milk to the cup.
 Step 6:Add sugar to the cup.
 Step 7:Stir the tea.
 Step 8:Drink the tea.
solved examples
1. Write an algorithm to find simple interest.
 Step 1:Start
 Step 2:Read Principal Amount, Rate and
Time
 Step 3:Calculate Interest using formula SI=
((principal*rate*time)/100)
 Step 4:Print Simple Interest
 Step 5:Stop
solved examples
1. Write an algorithm to find area of circle.
 Step1: Start
 Step2: Input the the value of radius R
 Step3: Let PI=3.14
 Step4: Calculate area=PI*R*R
 Step5: Print area
 Step6: End
solved examples
1. Write an algorithm to find greatest number
among two number.
 Step1: Start
 Step2: Input number1 and number2
 Step3: is a>b ?
-if yes print “a is greatest number”
-if no print “b is greatest number”
 Step4: End
solved examples
1. Write an algorithm to find area of rectangle.
 Step1: Start
 Step2: take length and breadth and store in
it L and B.
 Step3: multiply L and B and store in it area.
 Step4: print area
 Step5: End
Advantages of flowchart
 The Flowchart is an excellent way of communicating the
logic of a program.
 It is easy and efficient to analyze problem using flowchart.
 During program development cycle, the flowchart plays the
role of a guide or a blueprint. Which makes program
development process easier.
 After successful development of a program, it needs
continuous timely maintenance during the course of its
operation. The flowchart makes program or system
maintenance easier.
 It helps the programmer to write the program code.
 It is easy to convert the flowchart into any programming
language code as it does not use any specific
Disadvantages of flowchart
 The flowchart can be complex when the logic of a program
is quite complicated.
 Drawing flowchart is a time-consuming task.
 Difficult to alter the flowchart. Sometimes, the designer
needs to redraw the complete flowchart to change the logic
of the flowchart or to alter the flowchart.
 Since it uses special sets of symbols for every action, it is
quite a tedious task to develop a flowchart as it requires
special tools to draw the necessary symbols.
 In the case of a complex flowchart, other programmers
might have a difficult time understanding the logic and
process of the flowchart.
 It is just a visualization of a program, it cannot function like
an actual program
Flowchart for area of rectangle
Algorithm and flowchart
Algorithm and flowchart
Algorithm and flowchart

More Related Content

Similar to Algorithm and flowchart

Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)praveena p
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & ImplementationBilal Maqbool ツ
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithmrajkumar1631010038
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfMMRF2
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem slovingMani Kandan
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer ProgrammingProf. Erwin Globio
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sitSaurabh846965
 
Algorithm & Flowchart.pdf
Algorithm & Flowchart.pdfAlgorithm & Flowchart.pdf
Algorithm & Flowchart.pdfVpmv
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)TejaswiB4
 
TOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfTOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfEjazAlam23
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingHamad Odhabi
 
Algrithms and frowcharts.pptx
Algrithms and frowcharts.pptxAlgrithms and frowcharts.pptx
Algrithms and frowcharts.pptxGurneetsingh83
 
Programming Theory
Programming TheoryProgramming Theory
Programming Theoryiarthur
 

Similar to Algorithm and flowchart (20)

Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
C++ good tutorial
C++ good tutorialC++ good tutorial
C++ good tutorial
 
Algorithmic problem sloving
Algorithmic problem slovingAlgorithmic problem sloving
Algorithmic problem sloving
 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
 
Algorithm.pdf
Algorithm.pdfAlgorithm.pdf
Algorithm.pdf
 
Algorithm & Flowchart.pdf
Algorithm & Flowchart.pdfAlgorithm & Flowchart.pdf
Algorithm & Flowchart.pdf
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
 
C++ ppt
C++ pptC++ ppt
C++ ppt
 
TOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfTOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdf
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
Algrithms and frowcharts.pptx
Algrithms and frowcharts.pptxAlgrithms and frowcharts.pptx
Algrithms and frowcharts.pptx
 
Programming Theory
Programming TheoryProgramming Theory
Programming Theory
 
lecture 5
 lecture 5 lecture 5
lecture 5
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Algorithm and flowchart

  • 1. CLASS : 7 Subject : Computer Topic: programming technique Good morning students
  • 2. introduction  Computers can not perform any task on their own.  They need instruction to tell them what to do , how to do and when to do.  A set of instruction that direct the computer to do a specific task is called a program.  A task is actually a problem that is tracked by a programmer.  Programming problem need to be divided in to smaller step .
  • 3. Continue…….  So that each step can be formulated in the form of an instruction written in a programming languages.  The activity is termed as a computer programming.  Computer programming is a sequence of steps requires for a solving a problem with the help of computer programming are algorithm , flowchart and pseudo code(source code).
  • 4. An algorithm is a step by step procedures to solve a particular problem. It has a finite number of steps. To write algorithm , we use simple English language.
  • 5. General rules for writing an Algorithms:  An algorithm should have finite number of steps.  Algorithm should not dependent on a particular computer language.  The step should be executable by computer.  Algorithm is independent of programming language.  An algorithm must produce an output.
  • 6.
  • 7. Characteristics of Algorithms:  Precision – the steps are precisely stated(defined).  Uniqueness – results of each step are uniquely defined and only depend on the input and the result of the preceding steps.  Finiteness – the algorithm stops after a finite number of instructions are executed.  Input – the algorithm receives input.  Output – the algorithm produces output.  Generality – the algorithm applies to a set of
  • 8.
  • 9. Advantages of algorithm  It is a step-wise representation of a solution to a given problem, which makes it easy to understand  It is not dependent on any programming language, so it is easy to understand for anyone even without programming knowledge.  Every step in an algorithm has its own logical sequence so it is easy to debug.  By using algorithm, the problem is broken down into smaller pieces or steps hence, it
  • 10. Disadvantages of algorithm  Algorithms is Time consuming.  Difficult to show Branching and Looping in Algorithms.  Big tasks are difficult to put in Algorithms  Writing algorithm takes a long time.  An Algorithm is not a computer program, it is rather a concept of how a program should be.
  • 11. solved examples 1. Write an algorithm to give instruction for making maggi noodles as a food.  Step 1: Start  Step 2: Take pan with water  Step 3: Put pan on the burner  Step 4: Switch on the gas/burner  Step 5: Put magi and masala  Step 6: Give two minutes to boil  Step 7: Take off the pan  Step 8: Take out the magi with the help of fork/spoon  Step 9: Put the Maggi on the plate and serve it  Step 10: Stop
  • 12. solved examples 1. Write an algorithm to make cup of tea.  Step 1:Put the teabag in a cup.  Step 2:Fill the kettle with water.  Step 3:Boil the water in the kettle.  Step 4:Pour some of the boiled water into the cup.  Step 5:Add milk to the cup.  Step 6:Add sugar to the cup.  Step 7:Stir the tea.  Step 8:Drink the tea.
  • 13.
  • 14. solved examples 1. Write an algorithm to find simple interest.  Step 1:Start  Step 2:Read Principal Amount, Rate and Time  Step 3:Calculate Interest using formula SI= ((principal*rate*time)/100)  Step 4:Print Simple Interest  Step 5:Stop
  • 15. solved examples 1. Write an algorithm to find area of circle.  Step1: Start  Step2: Input the the value of radius R  Step3: Let PI=3.14  Step4: Calculate area=PI*R*R  Step5: Print area  Step6: End
  • 16. solved examples 1. Write an algorithm to find greatest number among two number.  Step1: Start  Step2: Input number1 and number2  Step3: is a>b ? -if yes print “a is greatest number” -if no print “b is greatest number”  Step4: End
  • 17. solved examples 1. Write an algorithm to find area of rectangle.  Step1: Start  Step2: take length and breadth and store in it L and B.  Step3: multiply L and B and store in it area.  Step4: print area  Step5: End
  • 18.
  • 19. Advantages of flowchart  The Flowchart is an excellent way of communicating the logic of a program.  It is easy and efficient to analyze problem using flowchart.  During program development cycle, the flowchart plays the role of a guide or a blueprint. Which makes program development process easier.  After successful development of a program, it needs continuous timely maintenance during the course of its operation. The flowchart makes program or system maintenance easier.  It helps the programmer to write the program code.  It is easy to convert the flowchart into any programming language code as it does not use any specific
  • 20. Disadvantages of flowchart  The flowchart can be complex when the logic of a program is quite complicated.  Drawing flowchart is a time-consuming task.  Difficult to alter the flowchart. Sometimes, the designer needs to redraw the complete flowchart to change the logic of the flowchart or to alter the flowchart.  Since it uses special sets of symbols for every action, it is quite a tedious task to develop a flowchart as it requires special tools to draw the necessary symbols.  In the case of a complex flowchart, other programmers might have a difficult time understanding the logic and process of the flowchart.  It is just a visualization of a program, it cannot function like an actual program
  • 21.
  • 22.
  • 23.
  • 24. Flowchart for area of rectangle