Robojoy challenge class

2-1.Using the intelligent block


Program to calculate "1+1"

To improve the program that made before.
Please add the two blocks which are "calculation block" and "number → text convert block" on the left side of the program.

"Calculation block" is located in the photograph.
Although it appears "Mathematics" on the screen, "calculation block" is correct.

"Number → text convert block" is on the photo above. Although written with "text", but "number → text convert block" is correct.

Modify the settings of the calculation block (mathematics).
Using the keyboard, enter "1" in the both text box A and B.

Connect a line between the block as shown in the photograph. This line is called "data wires". "Data wire" means "line of data", is the path of information. Value is propagated from block to block through this line. The connection part of the data wire is called "a plug".

For example, you can be thought of data wire as a "yarn phone ", and each single block as "a human". However, as a big difference, the yarn phone can alternately make conversation each other, but, the data wire can be make only one-way conversation.
Direction of data is already determined by the position of the plug.

If it would run well, see the photo above. "2" is the calculation result of "1+1".

[Download] Calculated Program 2 (for the NXT software)