Imagine we have to solve the following task with a catch “How much is two multiply by two plus two?”, but want to solve it by programming the brick.

To access the full video please subscribe to FLLCasts.com
- #1148
- 05 Mar 2019
You can calculate how much "two multiply by two" is by using the mathematical block from the red palette:
In parameters a and b you enter the numbers to be calculated. The third parameter will give the result from the calculation which you can transfer to another block. We will transfer it to the next mathematical block which will execute the “plus two” operation:
You can transfer the end result further in the program.
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Robotics with LEGO - Level 3.0 - Security systems
This is the fifth level of the Robotics with LEGO curriculum for students in fifth to twelfth grades.
In this level students will learn how to work with data measured by the sensors. The concept of Algorithm is introduced and the programs perform calculations without knowing the values beforehand. The programming blocks transfer data between each other via data wires. The robots are designed to address the problems of security systems. Variety of alarm systems are built and the physical principles of different security methods are considered.
- 50
- 1:03
- 213

Lesson 3 - Vault door
Introduction
Imagine you own a bank. Only five people can enter the vault simultaneously. These are the banker, the teller, the guard, the key client and their attorney. The police contact you to warn you there is a group of six bank robbers operating in the area and your bank is on their list. You cannot monitor the bank vault every single day but, as young engineer, you know there must be a solution to this problem.
- 7
- 11
- 11
- 3d_rotation 1

Robotics with LEGO - Level 3.5 - Measuring tools
The sixth level of the Robotics with LEGO curriculum for students in sixth or seventh grade.
In this level, we introduce student-created myBlocks. Any functionality that is used in several places in a program is grouped into myBlock thus shortening the program's length. Students create blocks that return the result of calculations as an output parameter. Input parameters can change the calculations in the myBlocks. The robot constructions measure physical properties like linear or rotational speed, the fuel level in a tank, or length, area and volume.
- 58
- 0:00
- 185

Robotics with LEGO - Level 3.5 - Measuring tools
The sixth level of the Robotics with LEGO curriculum for students in sixth or seventh grade.
In this level, we introduce student-created myBlocks. Any functionality that is used in several places in a program is grouped into myBlock thus shortening the program's length. Students create blocks that return the result of calculations as an output parameter. Input parameters can change the calculations in the myBlocks. The robot constructions measure physical properties like linear or rotational speed, the fuel level in a tank, or length, area and volume.
- 58
- 0:00
- 185