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
Neko [114]
3 years ago
8

CODEHS- Please help!

Computers and Technology
1 answer:
Ksivusya [100]3 years ago
8 0

Answer:

Revisiting "Build a Tower"

Recall in the last section how we made Karel make a tower of tennis balls. We told Karel to move() and turnLeft() and putBall() until we had a tower. At the end of the program, Karel was still at the top of the tower, like as in the picture below.

Stuck at top

Suppose that now we want Karel to come back down from the top of the tower. The first thing we need to do is get Karel facing in the right direction. One way to do this is to tell Karel

turnLeft();

turnLeft();

turnLeft();

And then tell Karel to

move();

move();

move();

back to the bottom of the tower.

However, telling Karel to turnLeft() three times is not very readable. That's a lot of writing when all we really want is to tell Karel to "turn right."

Explanation:

Hopefully it would help.

You might be interested in
List and describe 3 parts (often referred to as 'elements') of a web page?
Art [367]

Answer:

Content

Design

Development

Explanation:

The design and management of sites is internet explorer; it is the research that takes place over time to make a site look fantastic, work quickly and function well with a smooth user interface.

7 0
3 years ago
Some example questions include: ""How does multithreading affect the throughput of a GetFile Server hosting many very large file
zhenek [66]

<em>How does multithreading affect the throughput of a GetFile Server hosting many very large files?</em>

Answer:

It create multiple threads of large file which eventually causes in slowing down the speed of server which results in slower response time.

<em>How does multithreading affect the average response time for a GetFile server hosting a few small files?</em>

Answer:

Multiple threads in smaller files result in rapid response time and enormous process speed in small files.

6 0
3 years ago
Each time the ENTER key is pressed, Word creates a new paragraph. T/F
Sergio [31]
When you hit enter key you will create new paragraph so answer is true
4 0
4 years ago
The divBySum method is intended to return the sum of all the elements in the int array parameter arr that are divisible by the i
iragen [17]

Answer:

The complete method is as follows:

public static int divBySum(int[] arr, int num){        

     int sum = 0;

     for(int i:arr){

         if(i%num == 0)

         sum+=i;

     }

     return sum;

   }

Explanation:

As instructed, the program assumes that arr has been declared and initialized. So, this solution only completes the divBySum method (the main method is not included)

This line defines the method

public static int divBySum(int[] arr, int num){        

This line declares and initializes sum to 0

     int sum = 0;

This uses for each to iterate through the array elements

     for(int i:arr){

This checks if an array element is divisible by num (the second parameter)

         if(i%num == 0)

If yes, sum is updated

         sum+=i;

     }

This returns the calculated sum

     return sum;

   }

8 0
3 years ago
Cual es la definición de grouded ​
pochemuha

Answer:

ben bilanciato e reattivo.

(di un pilota o di un aeromobile) vietato o impedito di volare.

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Which agricultural CTSO has programs for middle-school and high-school students, as well as college students?
    13·2 answers
  • Impact of computer on education
    6·2 answers
  • What's the name of this apex legend hero​
    13·2 answers
  • What area displays the title of the document
    14·1 answer
  • Lan is working on a project report that will go through multiple rounds of
    10·1 answer
  • Complete the statement using the correct term.
    6·1 answer
  • Hi wanna play fortnite tomorrow add me im batjoker09 no caps or spaces
    13·1 answer
  • Code Problem 3 in Python 2.
    5·1 answer
  • Explain how you think robotics plays a part in the subway driver's job.
    13·2 answers
  • 14. How do digital libraries address the problem of digital exclusion?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!