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
Write a function index(elem, seq) that takes as inputs an element elem and a sequence seq and returns the index of the first occ
Delicious77 [7]

Answer:

def index(elem, seq):

   for i in range(len(seq)):

       if elem == seq[i]:

           return i

   

   return len(seq)

print(index(5, [4, 10, 8, 5, 3, 5]))

Explanation:

Create a function named index that takes elem and seq as parameters

Create a for loop that iterates through the seq. If elem is equal to the item in the seq, return the i, index of the item.

If the elem is not found in the seq, this means nothing will be returned in the loop, just return the length of the seq, len(seq)

Call the function with given parameters and print the result

Note: Since 5 is in the list in the example, the index of the 5 which is 3 will be returned

5 0
4 years ago
The five steps in the fetch/execute cycle and how do they correspond to a restaurant
zhuklara [117]
<span>The five steps in the fetch/execute cycle are : 
1) Instruction Fetch (IF) - This starts with the moving from the memory to
     the control unit which is given by the program counter. T</span><span>he control unit
     can then access the data immediately from the memory.</span><span>
2) Instruction Decode (ID) - what task the system has to do, where the
     results is to be stored and what operation is to be performed by which
     data.
3) Data Fetch (DF) - it gets the value from the memory.
4) Instruction Execute (IE) - The particular instruction is executed.
5) Result Return (RR) - The Result Value is restored in a
    particular memory location.  T</span><span>he return of new data resulting from
    (EX) that is put back into memory.</span>
3 0
4 years ago
Which type of storage disk and disk drive can be used in the given situation? Amy wants to borrow an interesting movie from Bruc
olga nikolaevna [1]

you might use USB drive to solve it.

5 0
4 years ago
Read 2 more answers
_____ refers to a computing environment where software and storage are provided as an Internet service and accessed with a Web b
vampirchik [111]

Answer:

Cloud Computing.

Explanation:

Cloud computing refers to an environment that is computing oriented where the storage and the software are provided as a service of internet and they are accessed with a web browser.There is no direct active management by the user.It is available to many user over the internet.

Hence we conclude that the answer to this question is Cloud Computing.

4 0
4 years ago
What area contains the command used to customize the print options in microsoft excel?
Nezavi [6.7K]
The answer is Page Layout Ribbon.  The <span>area contains the command used to customize the print options in microsoft excel is Page Layout Ribbon.</span>
4 0
4 years ago
Other questions:
  • if you want to presents slides to fellow sudents or co-workers witvh productively software should you use to create them?
    6·1 answer
  • When designing a website, describe 3 best practices you would give to your fellow classmate on effective web design that will ma
    9·1 answer
  • The development team recently moved a new application into production for the accounting department. After this occurred, the Ch
    7·1 answer
  • A plaintiff can bring a claim for intentional infliction of emotional distress when all but which of the following takes place:
    9·2 answers
  • Your computer crashed, and you lost many personal and work-related files. You just got a new computer, but you are now much more
    8·2 answers
  • What is not a basic function of a computer?
    10·2 answers
  • Which group and tab do you need to be in to separate text into two columns? Paragraph group and Insert tab Page Layout group and
    8·1 answer
  • Four categories of installer apps
    13·1 answer
  • Which statement about technology before the invention of the printing press is true?
    8·1 answer
  • 2 red and 2 overlapping balls in the center are surrounded by a green, fuzzy, circular cloud with a white line running through i
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!