Ашық сабақ PROGRAMMING THE ALGORITHM 8 "А" сынып

#1 слайд
Алматы облысы Іле
ауданы Қоянқұс ауылы
«№47 орта мектеп»МКМ
Информатика пәні
мұғалімі
Адилханова Бибинур
Тлеухановна
1 слайд
Алматы облысы Іле ауданы Қоянқұс ауылы «№47 орта мектеп»МКМ Информатика пәні мұғалімі Адилханова Бибинур Тлеухановна
#2 слайд
PROGRAMMING THE
ALGORITHM
2 слайд
PROGRAMMING THE ALGORITHM
#3 слайд
STQ
What is programming?
What are the types of
Algorithms?
3
3 слайд
STQ What is programming? What are the types of Algorithms? 3
#4 слайд
4By USING
Edraw
Programming Flowchart
Maker
Or
Flowgorithm
we can develop our
algorithm using
flowcharts and then
program it
4 слайд
4By USING Edraw Programming Flowchart Maker Or Flowgorithm we can develop our algorithm using flowcharts and then program it
#5 слайд
5
5 слайд
5
#6 слайд
6Flowgorithm
Flowgorithm can interactively
convert your flowchart to over
18 languages.
These include: C#, C++, Java,
JavaScript, Lua, Perl, Python,
Ruby, Swift, Visual Basic .NET,
and VBA (used in Office).
6 слайд
6Flowgorithm Flowgorithm can interactively convert your flowchart to over 18 languages. These include: C#, C++, Java, JavaScript, Lua, Perl, Python, Ruby, Swift, Visual Basic .NET, and VBA (used in Office).
#7 слайд
7To design an algorithm you can draw a
flowchart or write pseudocode .
Your algorithm (flowchart or pseudocode) can
then be converted by a programmer using the
programming language of their choice (e.g.
Python, C++, Visual Basic, etc.)
7 слайд
7To design an algorithm you can draw a flowchart or write pseudocode . Your algorithm (flowchart or pseudocode) can then be converted by a programmer using the programming language of their choice (e.g. Python, C++, Visual Basic, etc.)
#8 слайд
Coding Challenges
8We have designed five algorithms
(See flowcharts below).
Your task is to implement each of
these algorithms using programming
code.
8 слайд
Coding Challenges 8We have designed five algorithms (See flowcharts below). Your task is to implement each of these algorithms using programming code.
#9 слайд
A Puzzling Algorithm
9Test Plan
To understand what this algorithm is meant to do, we will predict its
expected output for different input values and record our predicted
outputs in a test plan.
Test # Input Values Expected Output
#1 a = 7
b = 2 a= b=
#1 a = 3
b = 9 a= b=
#1 a = 150
b = 10 a= b=
9 слайд
A Puzzling Algorithm 9Test Plan To understand what this algorithm is meant to do, we will predict its expected output for different input values and record our predicted outputs in a test plan. Test # Input Values Expected Output #1 a = 7 b = 2 a= b= #1 a = 3 b = 9 a= b= #1 a = 150 b = 10 a= b=
#10 слайд
10Now that you have completed the “expected output”
column of this test plan you might be able to explain
what this algorithm actually does?
You can now use trinket.io to implement this
algorithm and complete each test from the above
test plan.
10 слайд
10Now that you have completed the “expected output” column of this test plan you might be able to explain what this algorithm actually does? You can now use trinket.io to implement this algorithm and complete each test from the above test plan.
#11 слайд
Flags of the World
11Try to build a program that will ask the end-user
to choose a flag amongst six flags. The program
will then try to guess the selected flag by asking
a maximum of two questions.
Look at the flowchart below used to describe our
algorithm.
11 слайд
Flags of the World 11Try to build a program that will ask the end-user to choose a flag amongst six flags. The program will then try to guess the selected flag by asking a maximum of two questions. Look at the flowchart below used to describe our algorithm.
#12 слайд
12Analysing this flowchart, can you guess
the country corresponding to these six
flags?
12 слайд
12Analysing this flowchart, can you guess the country corresponding to these six flags?
#13 слайд
13Analysing this flowchart, can you guess
the country corresponding to these six
flags?
TurkeyTanzania
Luxembourg
Sweden ChadGhana
13 слайд
13Analysing this flowchart, can you guess the country corresponding to these six flags? TurkeyTanzania Luxembourg Sweden ChadGhana
#14 слайд
14From
Flowcharts to
Code
14 слайд
14From Flowcharts to Code
#15 слайд
15TEMPERATURE
CONVERTER
15 слайд
15TEMPERATURE CONVERTER
#16 слайд
It is possible to convert a temperature from Celsius
degrees to Fahrenheit and vice-versa using the
following conversion formulas:
16
16 слайд
It is possible to convert a temperature from Celsius degrees to Fahrenheit and vice-versa using the following conversion formulas: 16
#17 слайд
Your Challenge
Use the following flowchart to write a code for
Temperature Converter
Your script will:
●
Ask the end-user whether they want to convert from Celsius
to Fahrenheit or from Fahrenheit to Celsius,
●
Ask the user to enter a temperature in the correct unit,
●
Apply the conversion formula and display the temperature in
the new unit.
17
17 слайд
Your Challenge Use the following flowchart to write a code for Temperature Converter Your script will: ● Ask the end-user whether they want to convert from Celsius to Fahrenheit or from Fahrenheit to Celsius, ● Ask the user to enter a temperature in the correct unit, ● Apply the conversion formula and display the temperature in the new unit. 17
#18 слайд
18
18 слайд
18
#19 слайд
Testing
Once your code is done, complete the tests to
check that your code is working as expected.
LINK for Testing
19
19 слайд
Testing Once your code is done, complete the tests to check that your code is working as expected. LINK for Testing 19
#20 слайд
HOME TASK
py.CHECK.IO
programiz.com
20 слайд
HOME TASK py.CHECK.IO programiz.com
#21 слайд
Make your teaching more effective and save time. FORMATIVE
21 слайд
Make your teaching more effective and save time. FORMATIVE
#22 слайд
THANKS
!
Any questions?
22
22 слайд
THANKS ! Any questions? 22
шағым қалдыра аласыз


