Computer Science, asked by prajaptiaditya79, 1 month ago

We type commands in MSWLogo in the input box​

Answers

Answered by Ashmiroy
1

Answer:

yes we do

can please help me by marking me as brainliest

Answered by ehsan363
0

Explanation:

MSW Logo is an "interpreted" language. This means that commands issued by the user are interpreted by the computer and acted upon immediately, one statement at a time. "Compiled" programs, on the other hand, are first converted into machine language as an entire unit before any part of the program can be 'run'.

 

Commands are entered in the Input Box in the Commander window at the bottom of the screen.

 

  

 

Commands are executed, after being entered in the Input Box, by either pressing the Return key, or clicking on the Execute button. Each command is recorded in the Output/Command-Recall List Box above the Input Box.

 

 

         

                A Typical Logo Program                                                    Screen Dimensions

 

 

To exit MSW Logo enter BYE in the Input Box, or select Exit from the File menu.

 

 

Summary of Selected MSW Logo Commands

 

Command

Action

Short Version

FORWARD 100

Turtle moves forward the specified number of units. 

FD 100

BACK 50

Turtle moves back the specified number of units. 

BK 50

RIGHT 90

Turtle turns clockwise the number of degrees specified.

RT 90

LEFT 45

Turtle turns counterclockwise the angle specified.

LT 45 

PENUP

Turtle's pen is up. (Doesn't draw as it moves.)

PU 

PENDOWN

Turtle's pen is in the down position. 

PD

PENERASE

Turtle erases as it moves. 

PE

HIDETURTLE

Removes the Turtle 'triangle' from the screen.

HT 

SHOWTURTLE

Makes the Turtle visible again. 

ST

CLEARSCREEN

Erases the screen and returns the Turtle to its "home" position in the centre of the drawing screen.

CS

HOME

Returns the Turtle to the "home" position without erasing the screen. (Issue a PU command before HOME to prevent it drawing its return path as it goes.) 

HOME

LABEL [HELLO WORLD]

Displays text at the Turtle location. 

-

SETPENCOLOR 1-15

Determines pen color according to:

SETPC 4 = Red

SETPC 2 = Green

SETPC 1 = Blue

-

-

SOUND  [1000 200]

SOUND [<frequency> <duration>] where “frequency” is in cps and “duration” is in 1000ths of a second.

 

SETPENSIZE [10 10]

Sets width and height of the drawing pen. MSW Logo uses only the second value. Set them both the same.

-

--

BYE 

Exits MSW Logo

-

 

Writing Procedures in the Editor Window:

 

If you define a procedure via the Input Box by typing in: to box, the input dialogue window appears where you enter one line at a time followed by <Enter>. You are prompted to type in “End” to end the procedure.

 A better approach for editing is to use the built-in Editor window…

 

1. Go to the File/Edit… menu

 

2. Type in a suitable procedure name and click the OK button. The Editor window appears…

 You can type in commands, edit them, cut and paste, just like a conventional word processor. When you have finished defining the procedure go to File/Exit and click the Yes button to save your work..

 Remember that nothing has been saved to disk until you do a File/Save.

Saving Your Work in MSW Logo:

 

The File/Save and File/Save As… menus can be used to save logo files in the usual way, BUT this will only save work that has been defined as procedures. MSW Logo will save ALL of the procedures you defined during the ‘session’ as a file with the extension .LGO. The programme does NOT save individual procedures as separate files. All the procedures you created will be saved. You will lose all of the commands typed directly into the Input Box that were not defined as part of a procedure. (Another great reason for using procedures!)

 

Similar questions