SlideShare a Scribd company logo
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.
Algorithm and flowchart
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
Algorithm and flowchart
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.
Algorithm and flowchart
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
Algorithm and flowchart
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
Algorithm and flowchart
Algorithm and flowchart
Algorithm and flowchart
Flowchart for area of rectangle
Algorithm and flowchart
Algorithm and flowchart
Algorithm and flowchart

More Related Content

PDF
Làm chủ công cụ dựng sàn trong phần mềm revit
Kiến Trúc KISATO
 
PDF
Computer Fundamental MCQ Most Important Question
SONU HEETSON
 
PDF
Basic computer question
ABHISHEK KUMAR
 
PPT
power point
zabel39
 
PDF
Computer Input and Output Device MCQ Question
SONU HEETSON
 
PDF
Delhi Police Constable GK Question in Hindi
SONU HEETSON
 
PDF
COPA Practice Set (Previous Year Question Paper)
SONU HEETSON
 
PDF
4. bai giang nen mong chuong 4. tinh toan mong mem
ngoctung5687
 
Làm chủ công cụ dựng sàn trong phần mềm revit
Kiến Trúc KISATO
 
Computer Fundamental MCQ Most Important Question
SONU HEETSON
 
Basic computer question
ABHISHEK KUMAR
 
power point
zabel39
 
Computer Input and Output Device MCQ Question
SONU HEETSON
 
Delhi Police Constable GK Question in Hindi
SONU HEETSON
 
COPA Practice Set (Previous Year Question Paper)
SONU HEETSON
 
4. bai giang nen mong chuong 4. tinh toan mong mem
ngoctung5687
 

What's hot (12)

PDF
WordPad MCQ Questions and Answers Basic Objective
SONU HEETSON
 
PDF
Data Representation MCQ (Number System Questions)
SONU HEETSON
 
PDF
Thiết Kế Cầu Dầm Thép Liên Hợp Bản BTCT Nhịp Đơn Giản L=25 M (Kèm Bản Vẽ Cad,...
nataliej4
 
PDF
Solved Question Paper of Computer Operator Examination Conducted by EPF 2016
Suresh Khanal
 
PPTX
grade 5.pptx
MjMj96
 
PDF
IGCSE ICT (0417) - Audiences - Ajiro Tech
Ajiro Ndi
 
PDF
Photoshop MCQ Question for All Exams PDF Free Download
SONU HEETSON
 
PPTX
SaaS: Comparison between Dropbox, GoogleDrive and OneDrive
Extentia Information Technology
 
PDF
Notepad MCQ Objective Questions and Answers
SONU HEETSON
 
PDF
Basic IT Multiple Choice Questions
Shusil Baral
 
PDF
MS Excel MCQ Questions and Answers (Microsoft Office)
SONU HEETSON
 
PDF
MÓNG NÔNG TRÊN NỀN GIA CỐ CỌC CÁT
Kenh SVXD
 
WordPad MCQ Questions and Answers Basic Objective
SONU HEETSON
 
Data Representation MCQ (Number System Questions)
SONU HEETSON
 
Thiết Kế Cầu Dầm Thép Liên Hợp Bản BTCT Nhịp Đơn Giản L=25 M (Kèm Bản Vẽ Cad,...
nataliej4
 
Solved Question Paper of Computer Operator Examination Conducted by EPF 2016
Suresh Khanal
 
grade 5.pptx
MjMj96
 
IGCSE ICT (0417) - Audiences - Ajiro Tech
Ajiro Ndi
 
Photoshop MCQ Question for All Exams PDF Free Download
SONU HEETSON
 
SaaS: Comparison between Dropbox, GoogleDrive and OneDrive
Extentia Information Technology
 
Notepad MCQ Objective Questions and Answers
SONU HEETSON
 
Basic IT Multiple Choice Questions
Shusil Baral
 
MS Excel MCQ Questions and Answers (Microsoft Office)
SONU HEETSON
 
MÓNG NÔNG TRÊN NỀN GIA CỐ CỌC CÁT
Kenh SVXD
 
Ad

Similar to Algorithm and flowchart (20)

PPTX
flowchart & algorithms
Student
 
PPTX
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
PDF
Logic Development and Algorithm.
NandiniSidana
 
PPSX
Algorithm and flowchart
Sachin Goyani
 
PPTX
Flowcharts and algorithms
Student
 
PPTX
Unit 1(1).pptx Program Logic Development
Vaibhav Parjane
 
PDF
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
PDF
GE3151 PSPP _Unit 1 notes and Question bank.pdf
Guru Nanak Technical Institutions
 
PPTX
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
PDF
Problem solving methodology
Prof. Dr. K. Adisesha
 
PPTX
Algorithms and flow charts
Chinnu Edwin
 
PPT
Unit 1 python (2021 r)
praveena p
 
PDF
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
ANUSUYA S
 
PPTX
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
PDF
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
PPTX
Introduction to problem solving Techniques
merlinjohnsy
 
PPTX
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
HarshJha34
 
PPTX
Algorithm and flowchart.pptx
MaheShiva
 
PDF
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
PPTX
Algorithms and flow chart
Rochinisathkorala
 
flowchart & algorithms
Student
 
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
Logic Development and Algorithm.
NandiniSidana
 
Algorithm and flowchart
Sachin Goyani
 
Flowcharts and algorithms
Student
 
Unit 1(1).pptx Program Logic Development
Vaibhav Parjane
 
Fundamental of Information Technology - UNIT 6
Shipra Swati
 
GE3151 PSPP _Unit 1 notes and Question bank.pdf
Guru Nanak Technical Institutions
 
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Problem solving methodology
Prof. Dr. K. Adisesha
 
Algorithms and flow charts
Chinnu Edwin
 
Unit 1 python (2021 r)
praveena p
 
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
ANUSUYA S
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
Introduction to problem solving Techniques
merlinjohnsy
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
HarshJha34
 
Algorithm and flowchart.pptx
MaheShiva
 
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
Algorithms and flow chart
Rochinisathkorala
 
Ad

Recently uploaded (20)

PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
PDF
Landforms and landscapes data surprise preview
jpinnuck
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PPTX
Understanding operators in c language.pptx
auteharshil95
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
PDF
Exploring-Forces 5.pdf/8th science curiosity/by sandeep swamy notes/ppt
Sandeep Swamy
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PDF
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
Landforms and landscapes data surprise preview
jpinnuck
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Understanding operators in c language.pptx
auteharshil95
 
Congenital Hypothyroidism pptx
AneetaSharma15
 
Exploring-Forces 5.pdf/8th science curiosity/by sandeep swamy notes/ppt
Sandeep Swamy
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 

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.
  • 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
  • 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.
  • 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
  • 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
  • 24. Flowchart for area of rectangle