Gr9 T2 U4 L3 Nima Adan

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Grade 09

Computer Science
Advanced

Academic Year 2020/2021 – Term 2


Chapter-4
Lesson no. 3
Lesson name: Introduction to
computer algorithms.
• Computer algorithms introduction:
Learning - What is an Algorithm?
objectives - Algorithms example.
K W L
What I know ? What I want to know ? What I learned ?
Keywords
Algorithm

• You will learn about algorithms in this section. This


technique is used to solve problems in Computer Science and
other fields.
This video is from:
What is an algorithm?
Algorithm
You need a process to solve a problem. The following
steps will help you to solve any computer problem:
1. Summaries the problem and abstract the main requirements
to solve the problem.
2. Represent the algorithm by using any representation
techniques.
3. Convert the algorithm into a programming code and check
whether the algorithm works well. You could use a
programming
language such as Python.
Exampl
Algorithms
e
You follow an algorithm when you try to cross the road.
1. Find the safest place to cross (Zebra crossing) then stop.
2. STOP. Stand on the pavement little way back from the
edge.
3. WATCH AND LISTEN. Look for traffic in all directions and
listen.
An algorithm is a
4. WAIT UNTIL IT'S SAFE. Wait patiently and let the traffic
series of steps that
pass. you need to follow to
5. WATCH AND LISTEN. When it's safe, walk directly across solve a problem.
the road.
Activity
Algorithms
:
Write down the steps you need to follow to make a cup of coffee.

1.Heat up a cup of water.


2.Add 1 to 2 teaspoons of instant coffee to a mug.
3.Dissolve the coffee with a tablespoon of cold water.
4.Pour the hot water into the mug.
5.Mix in sugar or spices, if desired.
6.Add milk or cream if you're not a fan of black coffee.
7.Stir your coffee and serve it.

You might also like