In this lesson we’ll be using the editor from Open Roberta. Be careful to ensure that the following image is visible at the top right of your programming environment. You can find the editor on our website. Just click on ‘Let’s Start’ and then ‘Editor’.
FIRST STEPS: MATHEMATICS
Calliope mini offers you the possibility to use different mathematical operations. You can calculate numbers, create random numbers and save your results in variables.
The Calliope mini is able to perform the 4 basic arithmetic operations addition, subtraction, multiplication and division:
You can find the required block in the menu Math. From the block's drop-down list you can choose between the four basic arithmetic operations and the exponentiation. You can also find the empty numeric keypad in the menu Math.
To see the result of your calculation, you have to put the block behind the Show Text block from Action. The Calliope mini only displays the result of your calculation on the LED grid, in this case a five.
You can have Calliope mini create a random number:
You can find the corresponding block in the menu Math. By changing the two numbers within the block, you determine how small or how large the random number is allowed to become.