Topicm4ff02c8ca99d8ddc_1528449000663_0Topic

Constellation

Levelm4ff02c8ca99d8ddc_1528449084556_0Level

Second

Core curriculumm4ff02c8ca99d8ddc_1528449076687_0Core curriculum

Grades IV‑VI

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

2) formulates and writes in the form of algorithms commands consisting of:

c) controlling the robot or object on the screen;

3) distinguishes basic steps in algorithmic problem solving: determination of the problem and goal to be achieved, analysis of the problem situation, developing a solution, checking the problem solution for example data, writing the solution in the form of a diagram or program.

II. Programming and solving problems with the use of computer and other digital devices. The student:

1) designs, creates and writes in a visual programming language:

a) ideas of stories and solutions to problems, including simple algorithms using sequential, conditional and iterative commands and events,    
b) a simple program that controls a robot or other object on the computer screen;

Timingm4ff02c8ca99d8ddc_1528449068082_0Timing

45 minutes

General objectivem4ff02c8ca99d8ddc_1528449523725_0General objective

Creates scripts using simple algorithms.

Specific objectivesm4ff02c8ca99d8ddc_1528449552113_0Specific objectives

1. Creates own blocks.

2. Modifies blocks to expand their functions.

3. Uses random numbers in algorithms.

Learning outcomesm4ff02c8ca99d8ddc_1528450430307_0Learning outcomes

The student:

- creates scripts based on simple algorithms,

- creates and modifies new blocks.

Methodsm4ff02c8ca99d8ddc_1528449534267_0Methods

1. Discussion.

2. Work with computer.

Forms of workm4ff02c8ca99d8ddc_1528449514617_0Forms of work

1. Individual work.

2. Group work.

Lesson stages

Introductionm4ff02c8ca99d8ddc_1528450127855_0Introduction

On a piece of paper, draw a few stars with a pencil. Draw each star in such a way so as to draw it without lifting the pencil up. Describe the consecutive moves you made.

Procedurem4ff02c8ca99d8ddc_1528446435040_0Procedure

Your task is to build a script in which the invisibleinvisibleinvisible sprite will draw stars.

Task 1

Write the star's drawing algorithm. Use the stars you have drawn before.

Think about the angle of the lines.

[Interactive graphics]

Task 2

Write a script in which the sprite draws a five‑pointed star on a white background. The star should start in the middle of the stage. Commands containing the star's algorithm should be placed in the newly created block.m4ff02c8ca99d8ddc_1527752256679_0Write a script in which the sprite draws a five‑pointed star on a white background. The star should start in the middle of the stage. Commands containing the star's algorithm should be placed in the newly created block.

Solution:

The sprite drawing the star is not hidden.

[Illustration 1]

Task 3

Modify the script drawing a star so that its initial location is random and 5 stars appear after running the script.

Solution:

You have certainly noticed that if a star does not fit completely on stage, it is not exactly drawn. Therefore, the easiest way is to select the start coordinates so that they are reduced by the length of the star arm (the length of the star arm is the number of steps performed by the sprite).m4ff02c8ca99d8ddc_1527752263647_0You have certainly noticed that if a star does not fit completely on stage, it is not exactly drawn. Therefore, the easiest way is to select the start coordinates so that they are reduced by the length of the star arm (the length of the star arm is the number of steps performed by the sprite).

[Illustration 2]

Task 4

Add a random selectionrandom selectionrandom selection of the arm lengthlengthlength of the star to the script. Choose a matching backdrop.

Tip: Modify the block you created. To do this, click on it in the appropriate category and add the possibility of entering data.

[Illustration 3]

Solution:

[Illustration 4]

Lesson summarym4ff02c8ca99d8ddc_1528450119332_0Lesson summary

In newly created blocks, we can add parameters for passing variables.

Selected words and expressions used in the lesson plan

commandcommandcommand

five‑pointed starfive‑pointed starfive‑pointed star

invisibleinvisibleinvisible

lengthlengthlength

middlemiddlemiddle

random selectionrandom selectionrandom selection

start coordinatesstart coordinatesstart coordinates

m4ff02c8ca99d8ddc_1527752263647_0
m4ff02c8ca99d8ddc_1527752256679_0
m4ff02c8ca99d8ddc_1528449000663_0
m4ff02c8ca99d8ddc_1528449084556_0
m4ff02c8ca99d8ddc_1528449076687_0
m4ff02c8ca99d8ddc_1528449068082_0
m4ff02c8ca99d8ddc_1528449523725_0
m4ff02c8ca99d8ddc_1528449552113_0
m4ff02c8ca99d8ddc_1528450430307_0
m4ff02c8ca99d8ddc_1528449534267_0
m4ff02c8ca99d8ddc_1528449514617_0
m4ff02c8ca99d8ddc_1528450135461_0
m4ff02c8ca99d8ddc_1528450127855_0
m4ff02c8ca99d8ddc_1528446435040_0
m4ff02c8ca99d8ddc_1528450119332_0
invisible1
invisible

niewidoczny

Ro4ItGwROvaPT1
wymowa w języku angielskim: invisible
random selection1
random selection

losowy wybór

RxBZitU9ZuuQr1
wymowa w języku angielskim: random selection
length1
length

długość

R1GW5ykbvFiSO1
wymowa w języku angielskim: length
command1
command

polecenie

RjncVhVx1BA7L1
wymowa w języku angielskim: command
five‑pointed star1
five‑pointed star

gwiazda pięcioramienna

RLqw2uV96Q6RI1
wymowa w języku angielskim: five‑pointed star
middle1
middle

środek

RWP3AMTZkygWJ1
wymowa w języku angielskim: middle
start coordinates1
start coordinates

współrzędne startowe

RD1QkkuZawn9u1
wymowa w języku angielskim: start coordinates