Algorithm and
Flowcharts
Process of Solving Practical Problems
Analyze the problem before solving
Problem solving has:
Input: Things needed to solve the problem
Process: Steps to follow to solve the problem
Output: Result after solving the problem
What is an Algorithm?
A method that includes all the steps to solve a problem in order
Must have a start and end
Steps must be written sequentially
Example Algorithm: Making a Fruit
Salad
Start
Get various fruits
Wash fruits well
Cut fruits into small pieces
Put fruit pieces in a bowl
Add sugar and mix
Serve fruit salad
End
What is a Flowchart?
Graphical representation of algorithmic steps
Uses standard symbols to show each action
Flowchart Symbols [Show symbols
and meanings for:]
Start / End
Input / Output
Process
Decision
Flow arrows
Example Flowchart
Area of Rectangle [Show flowchart for calculating area of rectangle]
Benefits of Algorithms and Flowcharts
Break down complex problems into steps
Visualize problem-solving process
Plan before implementation
Easier to find and fix errors
Practice Exercise
Create an algorithm and flowchart for: [Choose a simple task like making
tea]
Summary
Algorithms list steps to solve a problem
Flowcharts visually represent algorithms
Both help in planning and problem-solving