Topicmed8247ba9cc7e797_1528449000663_0Topic

Consolidating exercises

Levelmed8247ba9cc7e797_1528449084556_0Level

Second

Core curriculummed8247ba9cc7e797_1528449076687_0Core curriculum

Grades IV‑VI

I. Understanding, analysing and solving problems. The student:

2) formulates and writes in the form of algorithms instructions which form:

a) the solutions to problems of everyday life or from various subject areas.

Timingmed8247ba9cc7e797_1528449068082_0Timing

45 minutes

General objectivemed8247ba9cc7e797_1528449523725_0General objective

Consolidate the knowledge about creating and analysing algorithms.

Specific objectivesmed8247ba9cc7e797_1528449552113_0Specific objectives

1. Consolidate the ability to create algorithms.

2. Consolidate the ability to determine the next steps to solve a simple problem.

Learning outcomesmed8247ba9cc7e797_1528450430307_0Learning outcomes

The student:

- can provide a way to solve a simple problem based on a written algorithmalgorithmalgorithm,

- can analyse simple algorithms and flowcharts.

Methodsmed8247ba9cc7e797_1528449534267_0Methods

1. Discussion.

2. Flipped classroom.

Forms of workmed8247ba9cc7e797_1528449514617_0Forms of work

1. Student's own work.

2. Group work.

Lesson stages

Introductionmed8247ba9cc7e797_1528450127855_0Introduction

First, try to solve the puzzle:

The villager has to transport a wolf, a goat and a cabbage across the river. The boat, however, is so small that only a villager and one of the three can fit into it. If he leaves the wolf with the goat, the wolf will devour the goat. If he leaves the goat with the cabbage, the goat will eat the cabbage. How can a villager handle the transport?

Write down the recipereciperecipe to solve this puzzle.

Answer:

You should start with the goat. The villager transports the goat, then returns for the wolf. Then he transports the wolf to the other side of the river. From there he takes the goat back, leaves it on the riverbank, where he started. He takes the cabbage and transports it across the river. At the end he returns for the goat.med8247ba9cc7e797_1527752256679_0You should start with the goat. The villager transports the goat, then returns for the wolf. Then he transports the wolf to the other side of the river. From there he takes the goat back, leaves it on the riverbank, where he started. He takes the cabbage and transports it across the river. At the end he returns for the goat.

Proceduremed8247ba9cc7e797_1528446435040_0Procedure

Task 1

Follow the instructions written:

1. Place the pencil on the card.
2. Repeat 4 times.
2.1. Repeat 4 times.
2.1.1. Move by 10 cm.
2.1.2. Turn right 90 degrees.
2.2. Turn right 90 degrees.

Was the algorithmalgorithmalgorithm written precisely? What is the final result of the task?

Task 2

Write an algorithm for changing units from ms to kmh and conversely.

Task 3

Write an algorithm for determining the body weight depending on its mass and the planet on which the body is located.

Task 4

Write an algorithmalgorithmalgorithm for vacuuming the apartment. In the algorithm, consider that the vacuum cleaner has a very short power cord.

Command:

Draw a flowchartflowchartflowchart for the recipereciperecipe for cooking boiled eggs.

1. Put the egg in boiling water.
2. Note the initial time tIndeks dolny 0
3. Read the current time t.
4. Calculate Δt = t - tIndeks dolny 0
5. If Δt < 3 min., go to step 3.
6. Remove the egg from the boiling water.
7. End the algorithm.

Modify the commandcommandcommand depending on if you want to cook either boiled egg or soft‑boiled egg. The soft boiled egg is boiled for less than 3 minutes.

Task 5

Analyse the algorithm below and list the consecutive steps that are being implemented. Specify the problem that the indicated algorithm applies to.

[Illustration 1]

Task 6

Analyse the interactive picture and see what steps are performed during the implementation of the algorithm when finding the largest common divisor.

[Interactive graphics]

Lesson summarymed8247ba9cc7e797_1528450119332_0Lesson summary

When we have a problem, it's best to create a recipereciperecipe for solving it. The recipe is in our case an algorithmalgorithmalgorithm. To write it correctly, let's analyse the stages of its creation and writing:

1) formulating the problem,
2) specifying the type of input data,
3) determining the result and the way how it is presented,
4) determining the method of performing the task,
5) writing the algorithm using the chosen method,
6) analysis of the correctness of the solution,
7) testing the solution for various data.

Ways of writing the algorithm:

1) list of subsequent commands,
2) pseudo‑language (pseudocode),
3) graphical presentation using a flowchartflowchartflowchart,
4) writing in a given programming language.

The creation of the algorithm forces us to analyse all possible (or at least known to us) cases. By using an algorithmic approach, you can avoid unpleasant surprises in many cases.med8247ba9cc7e797_1527752263647_0The creation of the algorithm forces us to analyse all possible (or at least known to us) cases. By using an algorithmic approach, you can avoid unpleasant surprises in many cases.

Selected words and expressions used in the lesson plan

algorithmalgorithmalgorithm

flowchartflowchartflowchart

codecodecode

commandcommandcommand

constantconstantconstant

instructioninstructioninstruction

programmerprogrammerprogrammer

recipereciperecipe

valuevaluevalue

variablevariablevariable

med8247ba9cc7e797_1527752263647_0
med8247ba9cc7e797_1527752256679_0
med8247ba9cc7e797_1528449000663_0
med8247ba9cc7e797_1528449084556_0
med8247ba9cc7e797_1528449076687_0
med8247ba9cc7e797_1528449068082_0
med8247ba9cc7e797_1528449523725_0
med8247ba9cc7e797_1528449552113_0
med8247ba9cc7e797_1528450430307_0
med8247ba9cc7e797_1528449534267_0
med8247ba9cc7e797_1528449514617_0
med8247ba9cc7e797_1528450135461_0
med8247ba9cc7e797_1528450127855_0
med8247ba9cc7e797_1528446435040_0
med8247ba9cc7e797_1528450119332_0
algorithm 1
algorithm

algorytm

RgH5syagLTXeE1
wymowa w języku angielskim: algorithm
recipe1
recipe

przepis

R1PGNtrm1bwLD1
wymowa w języku angielskim: recipe
flowchart1
flowchart

schemat blokowy

RXI09wVADB2tx1
wymowa w języku angielskim: flowchart
command1
command

polecenie

RjncVhVx1BA7L1
wymowa w języku angielskim: command
code1
code

kod

R1JorZ2D5ClUr1
wymowa w języku angielskim: code
constant1
constant

stała

RzEPgfwX9ZtAR1
wymowa w języku angielskim: constant
instruction1
instruction

instrukcja

RyCCuvEkuAYh81
wymowa w języku angielskim: instruction
programmer1
programmer

programista

R1YBSnOoEIops1
wymowa w języku angielskim: programmer
value1
value

wartość

RkcOiDV89Jt0V1
wymowa w języku angielskim: value
variable1
variable

zmienna

RCBeE3UIqQDMk1
wymowa w języku angielskim: variable