Introduction to Algorithms and Flowcharts – Class 8 Computer Science by Anirban Sir

digitalpage99 10 views 11 slides Aug 27, 2025
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

This presentation is specially designed for Class 8 Computer Science students to understand the basics of Algorithms and Flowcharts. It explains how to represent problem-solving steps clearly and systematically, which is the foundation of programming and computational thinking.

The slides cover:

W...


Slide Content

Algorithms and Flowcharts Smart Steps to Solve Any Problem By Anirban Sir

What is an Algorithm ? 📘 Definition : An algorithm is a finite set of clear, logical, and well-defined instructions that solve a specific problem. Each step in an algorithm must be unambiguous and lead to the next action, eventually reaching a result . Real-Life Analogy: Making tea: Boil water Add tea leaves Add sugar and milk Filter and serve

Characteristics of a Good Algorithm A good algorithm must have: Input – What data it takes Output – The final result Definiteness – Steps must be clear Effectiveness – Steps must be doable Termination – It must end 💡 Example: A recipe that never ends isn’t useful — same with algorithms.

Steps to Develop an Algorithm Understand the problem clearly Do analysis – What inputs and outputs? Identify processes or formulas needed Write the algorithm in simple numbered steps Make sure it is complete and correct

Rules for Writing an Algorithm 📘 While writing algorithms, follow these rules: Begin with START Number each step clearly Use INPUT/READ for data input Use PRINT/WRITE for output Use IF...THEN...ELSE for decisions End with STOP Keep steps short, meaningful, and logical 💡 Tip: Write it like you are giving instructions to a robot.

Example – Algorithm to Calculate Simple Interest 📘 Problem: Find SI using Principal (P), Rate (R), and Time (T) Steps: START INPUT P, R, T SI = (P × R × T) ÷ 100 PRINT SI STOP

What is a Flowchart? 📘 Definition : A flowchart is a visual representation of an algorithm , showing each step using standard symbols and arrows . It helps to understand the logic and flow of a problem at a glance . 🎯 Used in: Computer programming Engineering Maths Education 💡 Tip: Flowchart = Picture version of logic

Flowchart Symbols and Their Uses

Rules for Designing a Flowchart Start with one START and end with one STOP Use correct symbols Flow should be top to bottom or left to right Each shape = one step Use arrow lines properly Keep the chart clean, readable, and logical 💡 Tip: Your flowchart should “talk” even without words.

Flowchart Example – Average of 3 Numbers Steps: START INPUT A, B, C SUM = A + B + C AVG = SUM ÷ 3 PRINT AVG STOP

: Conditional Problem Solving 📘 Definition: Decision-making in an algorithm is done using IF...THEN...ELSE . In flowcharts, use Diamond shape with YES/NO arrows. Real-Life Example: IF (It’s raining) THEN take umbrella ELSE go without it