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
Simora [160]
3 years ago
5

Create a for-loop which simplifies the following code segment: penUp(); moveTo(100,120); turnTo(180); penDown(); moveForward(25)

; penUp(); moveTo(100,120); turnTo(180); penDown(); moveForward(25); penUp(); moveTo(100,120); turnTo(180); penDown(); moveForward(25);
Computers and Technology
1 answer:
kvasek [131]3 years ago
7 0

Answer:

for(var i=0; i<3; i++) {

  penUp();

  moveTo(100,120);

  turnTo(180);

  penDown();

  moveForward(25);

}

Explanation:

The i variable is the loop dummy. The code block will be executed 3 times.

You might be interested in
Setting up the initial values for the min and max depends on whether n is odd or even. If n is even, compare the first two eleme
sashaice [31]
The answer is the number (2)
3 0
3 years ago
What is the main advantage of a bitmap image?
kotykmax [81]
The answer is d. Hope this helps
4 0
3 years ago
A binary search algorithm is written (as in the modules, for example) which searches a pre-sorted array for some user-defined va
Mazyrski [523]

Answer:

c) it will always return with an answer of 7 or fewer comparisons of data.

Explanation:

As maximum number of comparison in worst case for sorted binary search is log₂n, here n = 100, so maximum search is at least 6.6 which is approximately 7.

4 0
3 years ago
There is a flashing yellow light at the intersection you are approaching. What does the flashing yellow light indicate, and what
lyudmila [28]
<span>The flashing yellow light at the intersection indicates to take precaution, when you see a yellow light flashing at the intersection, you must stop before crossing the intersection and look around the intersection, when the road is clear, then proceed.</span>
5 0
4 years ago
Think about what you have learned about having a good work ethic. In three to five sentences, explain why employers prefer to hi
Svetach [21]

Employers prefer to hire people with good work ethic because they are more independent. Which in turn means that they don't have to be monitored so closely. Also, due to the fact that they take pride in their work. Employees with good work ethic are more thorough and less likely to make mistakes. The pride they take in their employment is also reassuring because they tend to be more compassionate about making sure their job is well done. They are less likely to be late.  This also cuts down on complaints

3 0
3 years ago
Read 2 more answers
Other questions:
  • Part 2: students and courses, part 1  java review you may use an ide or a text editor, but i will test this by compiling and ru
    6·1 answer
  • In a submarine battle simulation, you know all the locations the enemy units can move to. Anticipating these moves, you call for
    13·2 answers
  • Which statement best expresses the use of Internet sources in a research project versus other types of sources?
    14·1 answer
  • Gabe Kelp is a fourteen-year-old goalie for the Soaring Eagles soccer team. He and his teammates are each creating a screen name
    11·1 answer
  • Each of the following code fragments contains a number of security vulnerabilities. For each fragment, identify these security v
    13·1 answer
  • What are the paparazzi?
    8·1 answer
  • Please help i have 15 mins
    5·1 answer
  • What is the current situation in farming​
    13·2 answers
  • When a program uses a ____, it reads all the records in the file from beginning to end, processing them one at a time. Group of
    5·1 answer
  • List the four types of computer cases
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!