SlideShare a Scribd company logo
Zeinna Belle C. Desamito
Melissa Mae B. Ibarra
9-SSC-Lavoisier
and
A computer is a useful tool for solving a
great variety of problems. To make a computer
do anything, you have to write a computer
program. In a computer you tell a computer,
step by step, exactly what you want it do. The
computer then executes the program, following
each step mechanically, to accomplish the end
goal.
Look around you. Computers and networks are
everywhere. In mathematics and computer science an
algorithm is a finite sequence of step expressed for
solving a problem. An algorithm can be defined as “a
process that performs some sequence of operation in
order to solve a given problem”. Algorithms are used for
calculation, data processing and many other fields. A
good algorithm is like using the right tool in the
workshop. It does the job with the right amount of
effort.
Algorithms can be expressed in many different notations,
including pseudocode, flowchart and programming languages.
Pseudocode and flowcharts are structured ways to express
algorithms. Programming languages are primarily intended for
expressing algorithms in a form that can be executed by a computer,
but are often used to define or document algorithms. Sometimes it is
helpful in the description of an algorithm to supplement small
flowcharts with natural language and/or arithmetic expressions
written inside block diagrams to summarize what the flowcharts are
accomplishing.
The use of algorithm provides a number of
benefits. By using an algorithm, decision making
becomes more rational. Problems that would be
difficult to solve in entirely can be answered easily
as small series. An algorithm serves as a mnemonic
device and helps ensure that variables or parts of
the problem are not ignored.
A flowchart is a type of diagram (graphical or symbolic) that
represents an algorithm or process. Each step in process is
represented by a different symbol and contains a short description
of the process step.
A flowchart describes what operations are required to solve
a given problem.
Flowcharts are used in analyzing, designing, documenting,
or managing a process or program in various fields.
To communicate with others how a process is done.
A flowchart is generally used when a new project begins in
order to plan for the project.
A flowchart helps to clarify how things are currently
working
and how they could be improved.
Flowcharts also uncover steps that are redundant or
misplaced.
Picture Shape Name Action
Represented
Oval Terminal Symbol Represents start
and end of program
Parallelogram Input/Output Indicates input and
output
Rectangle Process This represents
processing of action.
e.g. mathematical
operator
Diamond Decision Since computer only
answer the question
yes/no, this is used to
represent logical test
for the program.
Hexagon Initialization/
Preparation
This is used to prepare
memory for repetition
of an action.
Arrow Lines & Arrow
Heads
Direction This shows the flow of
the program
Annotation This is used to
describe action or
variable.
Circle On page connector This is used to show
connector or part of
program to another
part.
Pentagon Off- page connnector This is used to
connect part of a
program to another
part on the other
page or paper.
These are the basic symbols used generally.
Now, the basic guidelines for drawing a flowchart
with the above symbols are that:
 In drawing a proper flowchart, all necessary requirements
should be listed out in logical order.
 The flowchart is to be read left to right or top to bottom.
 A process symbol can have only one flow line coming out
of it.
 For a decision symbol, only one flow line can enter it, but
multiple lines can leave it to denote possible answers.
 The terminal symbols can only have one flow line in
conjunction with them.
Sequence of a Flowchart
Flowcharting and Algorithm
• Design a flowchart that will accept and
display a number. Write its equivalent
algorithms.
Algorithm:
Step 1. Read in the
value of N.
Step 2. Print the
value of N.
START
Read N
Print N
END
• Construct a flowchart that will compute and
print the sum of and average of 3 numbers.
Write each equivalent algorithm.
Algorithm:
Step 1: Inizialization of the sum and
average into 0.
Step 2: Input a,b,c
Step 3: Compute sum by adding a,b,
and c then compute the average by
dividing the sum of a,b and c by 3
Step 4: Print the computed sum and
average
START
SUM=0
READ A,B, C
Print Sum,
Average
END
SUM= A+B+C
AVERAGE =
(A+B+C)/3
•Draw a flowchart that computes and
prints the area of a rectangle. Write each
equivalent algorithm.
Algorithm:
1. Initialize Area into a
2. Input the value of length and
width
3. Compute for the area
4. Print the area
START
A = 0
Input lw
A = l*w Print A END
Flowcharting and Algorithm
• Construct flowchart that will compute
& print the sum and average of a 4th gr.
periods. Write its algorithm.
• Construct a flowchart that will
compute and print the sum of and
average of 2 numbers. Write each
equivalent algorithm.
 Algorithm is the sequence of steps to be performed in order to solve a
problem by the computer.
 Algorithms can be expressed in many different notations, including
pseudocode, flowchart and programming languages.
 Programming languages are primarily intended for expressing algorithms in
a form that can be executed by a computer, but are often used to define or
document algorithms.
 A flowchart is a type of diagram (graphical or symbolic) that represents an
algorithm or process. Each step in process is represented by a different
symbol and contains a short description of the process step.
 Flowcharts are used in analyzing, designing, documenting, or managing a
process or program in various fields.
Flowcharting and Algorithm

More Related Content

Similar to Flowcharting and Algorithm (20)

BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.pptBCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Python Unit 1.pdfPython Notes for Bharathiar university syllabusPython Unit 1.pdfPython Notes for Bharathiar university syllabus
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
ANUSUYA S
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
Chinnu Edwin
 
Chap6
Chap6Chap6
Chap6
artipradhan
 
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
 
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
 
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffdPROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
naagin12300
 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
Student
 
Algorithms and Flowchart usages in C laguage
Algorithms and Flowchart usages in C laguageAlgorithms and Flowchart usages in C laguage
Algorithms and Flowchart usages in C laguage
BalaKrishnan466
 
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptxFlow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
develvin404
 
Lesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptxLesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptx
AlinaMishra7
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
Dr. SURBHI SAROHA
 
Algorithms and Flowchart for IGCSE Students
Algorithms and Flowchart for IGCSE StudentsAlgorithms and Flowchart for IGCSE Students
Algorithms and Flowchart for IGCSE Students
MKKhaing
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Elizabeth de Leon Aler
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1
 
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.pptBCE L-2 Algorithms-and-Flowchart-ppt.ppt
BCE L-2 Algorithms-and-Flowchart-ppt.ppt
Kirti Verma
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Python Unit 1.pdfPython Notes for Bharathiar university syllabusPython Unit 1.pdfPython Notes for Bharathiar university syllabus
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
ANUSUYA S
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
Chinnu Edwin
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
umardanjumamaiwada
 
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
 
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffdPROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
dinesh620610
 
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
naagin12300
 
algorithms and flow chart overview.pdf
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
Student
 
Algorithms and Flowchart usages in C laguage
Algorithms and Flowchart usages in C laguageAlgorithms and Flowchart usages in C laguage
Algorithms and Flowchart usages in C laguage
BalaKrishnan466
 
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptxFlow Chajhbhvhhhhhhhhhhhhhrts  FOR BPE.pptx
Flow Chajhbhvhhhhhhhhhhhhhrts FOR BPE.pptx
develvin404
 
Lesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptxLesson 1 of c programming algorithms and flowcharts.pptx
Lesson 1 of c programming algorithms and flowcharts.pptx
AlinaMishra7
 
Algorithms and Flowchart for IGCSE Students
Algorithms and Flowchart for IGCSE StudentsAlgorithms and Flowchart for IGCSE Students
Algorithms and Flowchart for IGCSE Students
MKKhaing
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student
 
AlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdfAlgorithmAndFlowChart.pdf
AlgorithmAndFlowChart.pdf
SusieMaestre1
 

Recently uploaded (20)

LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad LevelLDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDM & Mia eStudios
 
প্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdf
প্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdfপ্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdf
প্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdf
Pragya - UEM Kolkata Quiz Club
 
CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...
CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...
CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...
Sritoma Majumder
 
Coleoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptxColeoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptx
Arshad Shaikh
 
Freckle Project April 2025 Survey and report May 2025.pptx
Freckle Project April 2025 Survey and report May 2025.pptxFreckle Project April 2025 Survey and report May 2025.pptx
Freckle Project April 2025 Survey and report May 2025.pptx
EveryLibrary
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
Rose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdfRose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdf
kushallamichhame
 
THE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATION
THE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATIONTHE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATION
THE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATION
PROF. PAUL ALLIEU KAMARA
 
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
EduSkills OECD
 
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based EducatorDiana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda
 
WRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptx
WRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptxWRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptx
WRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptx
Sourav Kr Podder
 
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptxRai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
SweetytamannaMohapat
 
State institute of educational technology
State institute of educational technologyState institute of educational technology
State institute of educational technology
vp5806484
 
Pharmaceutical_Incompatibilities.pptx
Pharmaceutical_Incompatibilities.pptxPharmaceutical_Incompatibilities.pptx
Pharmaceutical_Incompatibilities.pptx
Shantanu Ranjan
 
Semisolid_Dosage_Forms.pptx
Semisolid_Dosage_Forms.pptxSemisolid_Dosage_Forms.pptx
Semisolid_Dosage_Forms.pptx
Shantanu Ranjan
 
Dashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo SlidesDashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo Slides
Celine George
 
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in IndiaSmart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
fincrifcontent
 
Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...
EduSkills OECD
 
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
TV Shows and web-series quiz | QUIZ CLUB OF PSGCAS | 13TH MARCH 2025
Quiz Club of PSG College of Arts & Science
 
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad LevelLDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDM & Mia eStudios
 
প্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdf
প্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdfপ্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdf
প্রত্যুৎপন্নমতিত্ব - Prottutponnomotittwa 2025.pdf
Pragya - UEM Kolkata Quiz Club
 
CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...
CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...
CBSE - Grade 11 - Mathematics - Ch 2 - Relations And Functions - Notes (PDF F...
Sritoma Majumder
 
Coleoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptxColeoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptx
Arshad Shaikh
 
Freckle Project April 2025 Survey and report May 2025.pptx
Freckle Project April 2025 Survey and report May 2025.pptxFreckle Project April 2025 Survey and report May 2025.pptx
Freckle Project April 2025 Survey and report May 2025.pptx
EveryLibrary
 
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptxPests of Rice: Damage, Identification, Life history, and Management.pptx
Pests of Rice: Damage, Identification, Life history, and Management.pptx
Arshad Shaikh
 
Rose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdfRose Cultivation Practices by Kushal Lamichhane.pdf
Rose Cultivation Practices by Kushal Lamichhane.pdf
kushallamichhame
 
THE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATION
THE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATIONTHE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATION
THE CHURCH AND ITS IMPACT: FOSTERING CHRISTIAN EDUCATION
PROF. PAUL ALLIEU KAMARA
 
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...
EduSkills OECD
 
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based EducatorDiana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda - A Wauconda-Based Educator
Diana Enriquez Wauconda
 
WRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptx
WRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptxWRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptx
WRITTEN THEME ROUND- OPEN GENERAL QUIZ.pptx
Sourav Kr Podder
 
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
IDSP(INTEGRATED DISEASE SURVEILLANCE PROGRAMME...
SweetytamannaMohapat
 
State institute of educational technology
State institute of educational technologyState institute of educational technology
State institute of educational technology
vp5806484
 
Pharmaceutical_Incompatibilities.pptx
Pharmaceutical_Incompatibilities.pptxPharmaceutical_Incompatibilities.pptx
Pharmaceutical_Incompatibilities.pptx
Shantanu Ranjan
 
Semisolid_Dosage_Forms.pptx
Semisolid_Dosage_Forms.pptxSemisolid_Dosage_Forms.pptx
Semisolid_Dosage_Forms.pptx
Shantanu Ranjan
 
Dashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo SlidesDashboard Overview in Odoo 18 - Odoo Slides
Dashboard Overview in Odoo 18 - Odoo Slides
Celine George
 
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in IndiaSmart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
fincrifcontent
 
Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...
EduSkills OECD
 
Ad

Flowcharting and Algorithm

  • 1. Zeinna Belle C. Desamito Melissa Mae B. Ibarra 9-SSC-Lavoisier and
  • 2. A computer is a useful tool for solving a great variety of problems. To make a computer do anything, you have to write a computer program. In a computer you tell a computer, step by step, exactly what you want it do. The computer then executes the program, following each step mechanically, to accomplish the end goal.
  • 3. Look around you. Computers and networks are everywhere. In mathematics and computer science an algorithm is a finite sequence of step expressed for solving a problem. An algorithm can be defined as “a process that performs some sequence of operation in order to solve a given problem”. Algorithms are used for calculation, data processing and many other fields. A good algorithm is like using the right tool in the workshop. It does the job with the right amount of effort.
  • 4. Algorithms can be expressed in many different notations, including pseudocode, flowchart and programming languages. Pseudocode and flowcharts are structured ways to express algorithms. Programming languages are primarily intended for expressing algorithms in a form that can be executed by a computer, but are often used to define or document algorithms. Sometimes it is helpful in the description of an algorithm to supplement small flowcharts with natural language and/or arithmetic expressions written inside block diagrams to summarize what the flowcharts are accomplishing.
  • 5. The use of algorithm provides a number of benefits. By using an algorithm, decision making becomes more rational. Problems that would be difficult to solve in entirely can be answered easily as small series. An algorithm serves as a mnemonic device and helps ensure that variables or parts of the problem are not ignored.
  • 6. A flowchart is a type of diagram (graphical or symbolic) that represents an algorithm or process. Each step in process is represented by a different symbol and contains a short description of the process step. A flowchart describes what operations are required to solve a given problem. Flowcharts are used in analyzing, designing, documenting, or managing a process or program in various fields.
  • 7. To communicate with others how a process is done. A flowchart is generally used when a new project begins in order to plan for the project. A flowchart helps to clarify how things are currently working and how they could be improved. Flowcharts also uncover steps that are redundant or misplaced.
  • 8. Picture Shape Name Action Represented Oval Terminal Symbol Represents start and end of program Parallelogram Input/Output Indicates input and output
  • 9. Rectangle Process This represents processing of action. e.g. mathematical operator Diamond Decision Since computer only answer the question yes/no, this is used to represent logical test for the program. Hexagon Initialization/ Preparation This is used to prepare memory for repetition of an action. Arrow Lines & Arrow Heads Direction This shows the flow of the program
  • 10. Annotation This is used to describe action or variable. Circle On page connector This is used to show connector or part of program to another part. Pentagon Off- page connnector This is used to connect part of a program to another part on the other page or paper.
  • 11. These are the basic symbols used generally. Now, the basic guidelines for drawing a flowchart with the above symbols are that:  In drawing a proper flowchart, all necessary requirements should be listed out in logical order.  The flowchart is to be read left to right or top to bottom.  A process symbol can have only one flow line coming out of it.  For a decision symbol, only one flow line can enter it, but multiple lines can leave it to denote possible answers.  The terminal symbols can only have one flow line in conjunction with them.
  • 12. Sequence of a Flowchart
  • 14. • Design a flowchart that will accept and display a number. Write its equivalent algorithms.
  • 15. Algorithm: Step 1. Read in the value of N. Step 2. Print the value of N. START Read N Print N END
  • 16. • Construct a flowchart that will compute and print the sum of and average of 3 numbers. Write each equivalent algorithm.
  • 17. Algorithm: Step 1: Inizialization of the sum and average into 0. Step 2: Input a,b,c Step 3: Compute sum by adding a,b, and c then compute the average by dividing the sum of a,b and c by 3 Step 4: Print the computed sum and average START SUM=0 READ A,B, C Print Sum, Average END SUM= A+B+C AVERAGE = (A+B+C)/3
  • 18. •Draw a flowchart that computes and prints the area of a rectangle. Write each equivalent algorithm.
  • 19. Algorithm: 1. Initialize Area into a 2. Input the value of length and width 3. Compute for the area 4. Print the area START A = 0 Input lw A = l*w Print A END
  • 21. • Construct flowchart that will compute & print the sum and average of a 4th gr. periods. Write its algorithm. • Construct a flowchart that will compute and print the sum of and average of 2 numbers. Write each equivalent algorithm.
  • 22.  Algorithm is the sequence of steps to be performed in order to solve a problem by the computer.  Algorithms can be expressed in many different notations, including pseudocode, flowchart and programming languages.  Programming languages are primarily intended for expressing algorithms in a form that can be executed by a computer, but are often used to define or document algorithms.  A flowchart is a type of diagram (graphical or symbolic) that represents an algorithm or process. Each step in process is represented by a different symbol and contains a short description of the process step.  Flowcharts are used in analyzing, designing, documenting, or managing a process or program in various fields.