How can there be a complete set of logo language commands

Updated on technology 2024-06-11
3 answers
  1. Anonymous users2024-02-11

    You can see it in the F1 help.

  2. Anonymous users2024-02-10

    The type command works and is used similarly to the pr command, but it is output without wrapping, while pr is swapping.

    2. The difference between a for loop and a recursive call is a loop that changes the value of a variable in the same process or command line. Recursive calls are invoked in one procedure and another in one procedure. 27. Random function:

    randomx can randomly generate a positive integer between 1x. In some commands with parameters, a random function is used as an argument to make the execution result within a predetermined range, but it cannot be specifically determined.

    For example, repeat5setpcrandom14fd90rt144 and prrandom6 will output a random positive integer in 16.

    28. The make variable of the assignment command must be assigned first, and the variable can participate in the operation only after there is a definite value. The format of the assignment statement is as follows: make variable name data, for example:

    makes9, where the quotation marks cover the bridge with the variable name, not the variable (the variable in the logo should have a colon). The data behind is the assignment content, and you can also use the read command to wait for the keyboard to enter it. Such as:

    makesread, after entering, enter 60, the value of the bei u variable s will be assigned to 60, if you enter pr:s, it will be displayed as 60. After you assign a value to a variable, to use it in a procedure or on the command line, prefix the variable name with a colon.

    29. When drawing, you must set the background color first, otherwise the graphics on the screen will be eliminated.

    30. The inactive turtle is called to become an active turtle and returns to the original inactive turtle state after completing the task; When the other turtles are active turtles, turtle 0 is an inactive potato turtle.

  3. Anonymous users2024-02-09

    Let's take a look at some of the most basic drawing commands in the logo language:

    1 Movement-related commands: "Forward", "Backward" and "Homecoming". The Forward command allows the turtle to move forward by a certain number of units, for example:

    When the "forward 50" command is executed, the baby turtle moves forward by 50 units; The back command will cause the baby turtle to move backwards, and if the "back 50" command is executed, the turtle's direction will not change, but will move back by 50 units; After executing the homing command, regardless of the current position and orientation of the baby turtle, it will obediently return to the ** position in the drawing area, and face directly above the screen.

    2 Instructions related to turning: "Turn right" and "Turn left". The right turn command allows the baby turtle to turn to the right at a certain angle, for example:

    If you run the "right" 45 command, the turtle's orientation will be 45 degrees to the right; The left turn command will cause the baby turtle to turn to the left, e.g. if you run the "left 45" command, the baby turtle's direction will be turned to the left at a 45 degree angle. These commands can drive the baby turtle to rotate around its center at an angle.

    3 Control-related commands are repeat, if, etcthen…else…(Conditional Execution) and so on. If you execute repeat 4 [forward 200 rlght 9o], you can draw the square in Figure 2, and if you directly combine the move command with the turn command, you will write more statements, but they are all "forward 200" and "right 90" commands that are used 4 times.

Related questions
8 answers2024-06-11

system("command");The role is to open the "Command Prompt", and later you can manually enter DOS commands. >>>More

5 answers2024-06-11

1. Common function keysThe basic key functions in CAD operation are explained in detail as follows: >>>More

2 answers2024-06-11

vbscript common directives:

VBS, Microsoft Visual Basic Scripting Edition, is the newest member of the Visual Basic family of programming languages that applies flexible scripting to a wider range of areas, including web client scripting in Microsoft Internet Explorer and Web servers in Microsoft Internet Information Server script。 >>>More

11 answers2024-06-11

Add a dot and a slash in front of the name of the software program/

5 answers2024-06-11

The command to view files and directories in Linux is: ls

The original English meaning of ls: list, the path where the command is located: bin ls, applies to all user permissions, and the main function is to display the directory file in the form of a list. >>>More