0% found this document useful (0 votes)
10 views17 pages

Algorithms and Flow Charts

The document outlines the problem-solving process, including identifying the problem, brainstorming solutions, evaluating, and implementing the best idea. It explains algorithms as sequences of instructions for completing tasks and describes flowcharts as visual representations of algorithms that help in programming. Additionally, it includes flowchart symbols and provides examples and activities related to creating flowcharts and programming conditions.

Uploaded by

amanullah zain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views17 pages

Algorithms and Flow Charts

The document outlines the problem-solving process, including identifying the problem, brainstorming solutions, evaluating, and implementing the best idea. It explains algorithms as sequences of instructions for completing tasks and describes flowcharts as visual representations of algorithms that help in programming. Additionally, it includes flowchart symbols and provides examples and activities related to creating flowcharts and programming conditions.

Uploaded by

amanullah zain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Algorithms and Flow

charts
What is Problem solving
• A process of finding solution to a given problem
Steps of Problem Solving
Identify the
problem

Brainstorm
Evaluate
solutions

Select the
Implement
best idea
What is an Algorithm
• A plan or sequence of instructions followed in a specific order to
complete a task or solve a problem.
• It can be used to solve a wide range of problems such a finding the
shortest route,sorting data or encrypting information.
• Algorithms follow the same basic structure of breaking down a task
in smaller steps.
What is your morning routine on a
school day
What is a computer program?
• An algorithm that tells the computer specific steps to execute , in a
specific order, in order to carry out a specific task.
Flow charts
• Help programmers to plan and write programs.
• Visual representation of an algorithm.
Flowchart Symbols

‘Termination’ symbol (Start/Stop).

Data (Output) symbol (e.g. a light or


sound device).
Loo
p
Decision symbol (Two possible outcomes
‘Y’ or ‘N’).

Process symbol (something being


done).
Example Flowchart
Start
Can you tell what process this
flowchart is designed to show? Switch on
kettle

Wait for kettle


It is to boil
for how to
make a Water
boiled
N
Wait
cup of tea. ?
Y
Pour water on
teabag in cup

Wait

Add milk
and sugar
What do you notice that is different
about this symbol and its arrows, Stop

compared to the others?


Activity 1
• Create a flowchart that involves fixing a lamp
• Is lamp plugged in?
• Lamp dosent work
• Plug in lamp
• Replace bulb
• Bulb burned out
• Repair lamp
START

Lamp dosent work

Is lamp No
plugged Plug in Lamp
in?

yes

Is bulb
yes
burned
out ? Replabe bulb

no

Repair lamp

stop
What is a condition?
• Something that must happen in order for some thing else to be
possible.
• In programming terms we say a condition is true or not true
• Checking wether a condition is true or not trueis called testing the
condition.
Questions
• What is problem solving? Write the steps of problem solving.
• What is an Algorithm?
• What is a computer program?
• What is a flowchart?
• Draw flow chart symbols and explain their meaning
What does a computer use when it
needs to make a descion
• IF<condition>THEN<task 1>ELSE<task 2>
Activity 2
• On Thonny design a program asking user for an input of time store it
in variable x if time is ==9 print welcome to the party else print sorry
you are late.
• Write the correct code in your note books
• x=input('enter the time :')

• if x=='9':
• print('welcome to the party')
• else:
• print('Sorry you are late ')

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy