1. What does a SETPC command do?
2 How can we print a letter word and sentence in Logo?
3. List the basic rules to perform calculations in Logo.
4. What is the significance of REMAINDER command?
5. What is the use of REPEAT command?
please give me the answer please
Answers
Answer: 1.SETPENCOLOR [255 000 000] — SETPC, for short —tells Ernestine what color to use to draw a line. SETFLOODCOLOR [0 0 0] — SETFC, for short — lets you fill a closed shape with a color. You must go inside the shape to use this command.
2.PRINT' command is used to display a letter, word, or sentences. Explanation: PRINT command is referred as a very important primitive used for displaying letters, numbers, words or a sentence on the screen.
3.The concepts of addition, subtraction, multiplication and division are complex abstract ideas which are interrelated.
4.r = rem( a , b ) returns the remainder after division of a by b , where a is the dividend and b is the divisor. This function is often called the remainder operation, which can be expressed as r = a - b.
5.The REPEAT command enables you to loop through a block of code. REPEAT defines the beginning of the block, and ENDREPEAT defines the end. You control the loop by specifying the number of loop iterations, and/or the conditions under which the loop terminates.
Answer:
SETPENCOLOR [255 000 000] — SETPC, for short —tells Ernestine what color to use to draw a line. SETFLOODCOLOR [0 0 0] — SETFC, for short — lets you fill a closed shape with a color. You must go inside the shape to use this command.