An Erasmus + innovation project
In a programming language the variables to store information are basic. DEMETER II has the following syntax for the use of variables:
Where VAR can be any value that the programmer uses. It can be STEPS, MINES, or whatever name the programmer chooses.
Alternatively we have the PRINT instruction to show the value of a variable on the rover’s remote control. This statement has the following syntax:
Below is an example of how these instructions work:
With these types of instructions we can solve problems like the exercise 15:
The solution to this exercise is the following:
In this section you will learn about the strategy we have followed to teach our students programming in a simple and fun way. Learning to code can be a motivating activity.
In this section you will learn about the basic structures of our programming language. We call this set of instructions DEMETER I.
In this section you will learn about the evolution of the initial DEMETER I instruction set. We will call the full language DEMETER II. In addition to having new instructions, the minefields have new elements that increase the difficulty.