Looped Lumies

- Iterative Loop -

Introduction

The energy between the Coders has stopped flowing. The Drakonid invasion interrupted their important connections. Fortunately, the flow of energy can be restored, but your help is needed. Stomp on a Coder to connect it with another, but don't overdo it with the energy! Estimate how many stomps will be needed to create a connection. If you put too little energy into it, you won't help them either. The number of your stomps is shown by the Coder at the top. Stomp exactly as many times as needed! Thanks to this, the Coders will know how much energy they need to pass on to each other. The number you set will be their benchmark for the future. Shall we start?

Application Instructions

The energy between the Coders has stopped flowing. It can only be restored in one way - by stomping the selected Coder the right number of times. The number of your stomps is shown by the Coder at the top. Be careful not to overdo it with the energy. Stomp only as many times as needed!

Conversation Inspirations with Children

Talk to students about known life situations or examples from their immediate environment in which they use or may encounter the concept mentioned:

  • Sometimes to achieve our goal, we have to repeat the same move many times:
  • How many rounds with a toothbrush do you need to have clean and shiny teeth? Try to count!
  • How many times do you scoop soup with a spoon to eat everything from the plate? Try to count!
  • How many times do you have to turn the pedals on a bike to ride the whole path in the park? Try to count!
  • How many steps do you need to take to go from the window to the door in the classroom? Count!
  • How many steps will you take to get to the third floor? Count!

What is an iterative loop?

In programming, this is a type of loop in which a certain number of repetitions of the same instructions are performed. To control the execution of the iterative loop (sometimes called a counter loop), a special control variable should be used, which will count the number of repetitions performed.