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
Cloud [144]
3 years ago
13

What's wrong with these codes in code HS Karel challenges(7.1.2. Racing Karel) Codes: //Below is the program that have Karel mov

e around the race track 8 times, and end in his starting location. Everytime Karel hits a corner, he will put a ball down. At the end there should be 8 balls on each corner. function start(){ for(var i = 0; i < 5; i++){ ballSet(); wallRun(); turnLeft(); } function wallRun(){ while(frontIsClear()){ move(); } } function ballSet(){ putBall(); } }
Computers and Technology
1 answer:
Viktor [21]3 years ago
5 0

Answer:

The program only runs 5 five since the for loop statement is limited to loop only five times.

Explanation:

In programming, a for-loop statement is used to repeat a collection of events a definite number of times. The number of loops is specified and compared with a variable to execute a block of code.

The for-loop statement in the code above declares and initializes a variable "i" to zero, runs the block of code, and increments by one if it is less than 5.

To make it run eight times, the value five should be changed to 8 instead.

You might be interested in
Timelines show
Aloiza [94]
A. the order of events...
hope this helps!
4 0
3 years ago
Read 2 more answers
The symbol is used to indicate that a line of text is a comment.
Vladimir [108]

Answer:

Explanation:

asterisk

6 0
3 years ago
Read 2 more answers
Who is GodLJonathan?​50 FREE POINT$!!
Irina-Kira [14]

Answer:

i don't know..

..goo gle it ...............

6 0
3 years ago
Read 2 more answers
Compose a loop program to examine the eight bytes in the words y and z. If a byte is the code for a decimal number, output it to
Over [174]

Answer:

See explaination

Explanation:

A loop program is a type of program that supports iteration.

It is a conditional statement ptogram that produces its result after a series of iteration or repetition from one loop to the other.

Please go to attachment for the loop program that examines the eight bytes in the words y and z. If a byte is the code for a decimal number, output it to the console. Otherwise, simply ignore it and examine the next byte.

5 0
4 years ago
The word "software "is interchangeable with the word
avanturin [10]
1. Program
2. Application
3. Procedure
4. Any file located on a file system
6 0
3 years ago
Other questions:
  • Can someone help me? Thanks.
    10·1 answer
  • In what way, if any, are colleges and universities related?
    14·1 answer
  • Which of the following is an example of a Boolean condition that Python could recognize?
    9·1 answer
  • You are using a new release of an application software package. You think that you have discovered a bug. Outline the approach t
    14·1 answer
  • When naming a file to upload into an assignment in blackboard, it is okay to use special characters?
    13·1 answer
  • A programmer wants to write a procedure that calculates the net elevation - total number of feet a traveler goes up and down. Fo
    13·1 answer
  • What language below is used to view and manipulate data that is stored in a relational database?
    6·1 answer
  • What will you see on the next line?
    6·2 answers
  • What does the image depict:
    14·1 answer
  • In what way can an employee demonstrate commitment?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!