1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Fudgin [204]
3 years ago
10

It is said that functions with parameters generalize the behavior of a more specific command and allow programmers to use functi

ons instead of duplicated code. explain what this means to you using the difference between turnleft() and turnleft(angle) as an example.
Computers and Technology
1 answer:
Bumek [7]3 years ago
6 0
Yes, it is true that <span>functions with parameters generalize the behavior of a more specific command .  In the given  example, using just the turnleft() function is a specific command. It tells the turtle to move by the default angle of 90 degrees. However, if we use turnleft(angle), specifying the angle we want the turtle to turn by, then we are generalizing the behavior of the turnleft function by letting it turn by the angle that we choose, and not what is already fixed. Moreover, instead of having to give separate instructions to the computer to make the turtle move left each time by different angles, the function gives us the flexibility to just call it whenever we need to turn left and specify the angle we need the turtle to turn by, hence avoiding repetition.</span>
You might be interested in
Lol WAKE UP!!! and get ready to answer my questions.
deff fn [24]

Answer:

<h2>1. Variable Creation Statement</h2><h2>2. Fav_Num=7</h2>

Explanation:

<h2><em>Hope This Helps :)</em></h2><h2>Im not sure if the 2nd one is correct but i think that it is.</h2>
5 0
3 years ago
What are the first letters of each of the 3 main colors in javaScript? (seperate with commas)
Oxana [17]

Answer:

R, G, B

Explanation:

Red, Green, Blue

4 0
3 years ago
Rachael has been posting negative comments on several of her peers' social media pages. Which of the six Ps is Rachael abusing?
posledela
The answer is D. Personification
4 0
4 years ago
Anwser the question below plz due in 15 mins.
klemol [59]
Novels about Harry Potter, a boy who learns on his eleventh birthday that he is the orphaned son of two powerful wizards and possesses unique magical powers of his own. He is summoned from his life as an unwanted child to become a student … More
Releas
6 0
3 years ago
A structure is private by default, but can be declared to be friend or private.
posledela
Structures can be accessed from anywhere within the module or class in which they are declared. A structure is Friend by default. To specify the accessibility in more detail, include Public, Protected, Friend, Protected Friend, or Private in the Structure statement. You must declare every data member of a structure.
4 0
3 years ago
Other questions:
  • Complete the function to replace any period by an exclamation point. Ex: "Hello. I'm Miley. Nice to meet you." becomes:
    9·1 answer
  • Tool such as microsoft’s ____ are helping to bridge different platforms and programming languages.
    6·1 answer
  • What kind of voltage do solar cells generate? Solar cells produce ______ voltage which is not usable by most household appliance
    15·1 answer
  • The malicious use of computer code to modify the normal operations of a computer or network is called a ___ .
    13·1 answer
  • Exactly how thin is the air in outer space?
    10·1 answer
  • Write a program that includes functions to calculate feet to inches, inches to feet, feet to yards, and yards to feet. Then, acc
    9·2 answers
  • Special variables that hold copies of function arguments are called _________.
    11·1 answer
  • Write an Assembly program in MIPS that does the following:
    7·1 answer
  • What is impact of Internet<br> in our lives
    7·1 answer
  • What is a closed system?​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!