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
Oksana_A [137]
2 years ago
5

2.17.5 coders answers

Computers and Technology
1 answer:
BlackZzzverrR [31]2 years ago
5 0

Answer:

start();

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

move();

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

move();

}

}

if(colorIs(Color.blue)){

paint(Color.red);

if(frontIsClear());

}else{

if(colorIs(Color.red)){

paint(Color.blue);

if(frontIsClear());

}

}

function start(){

}

Q. 5.1.3: Move to Wall

Ans:

function start(){

while(frontIsClear()){

move();

}

}

I apologize if its incorrect

You might be interested in
_____ serves as a foundation for comparison or measurement.
sammy [17]

Answer: C

Explanation: Baseline is the starting point or used for comparison or measurement.

6 0
3 years ago
Which will be displayed after the following process is completed?
Sergeu [11.5K]

Answer:

True

Explanation:

In this pseudocode the programmer defines 3 variables, x=1, y=2 and z=3, then he creates a conditional that states that if any of the previously defined variables has the value of 1 then a True will be displayed, on the other hand, if none of the variables has the value of 1 then a False will be displayed. In this case x=1, so it will display a True.

8 0
3 years ago
Furnishing sales analysis reports to sales managers is an example
vladimir2022 [97]

Answer:

The Answer is B

Processing

Explanation:

5 0
2 years ago
You can resize a row in a table by dragging the ____.
Sav [38]

Answer:

desk

Explanation:

You need more backround information i dont know what u talking about

6 0
3 years ago
Which programming language is an interpreted language most commonly used for client-side Web scripting, such as animating page e
Ratling [72]

Answer:

The answer is "JavaScript".

Explanation:

JavaScript is a scripting client language that is used to create web pages. It has been developed by Netscape as a standalone language. It uses the dynamic web pages for adding special effects on pages.

  • JavaScript can be applied very quickly, You will just have to put the code into HTML and simply tell the web browser.
  • JavaScript runs on machines when a web user works offline.
  • It helps you to develop highly responsive applications that enhance user experience and provide complex features without waiting for the server to react and view an additional page.
3 0
3 years ago
Other questions:
  • Identifying Characters
    11·2 answers
  • Which security risk is an example of malware?
    8·2 answers
  • What should a consultant recommend to meet this requirement?Universal containers assign its contact center agents to certain int
    12·1 answer
  • Gross Domestic Product (GDP) is the economic report card for any country. What is the report card measuring?
    6·1 answer
  • 12. Write C statement(s) that accomplish the following. a. Declare int variables x and y. Initialize x to 25 and y to 18. b. Dec
    12·1 answer
  • Which of the following is true about radio waves? They have short wavelengths. They have high energies. They reveal hot gases. T
    10·2 answers
  • Write down a scratch program which:
    5·1 answer
  • does anyone know the what the tuition fee is for UC Berkeley PER YEAR. My smooth brain can't find it ANYWHERE.
    10·2 answers
  • ____ loses data when it stops receiving electrical power.
    10·1 answer
  • What is one of the disadvantages of a server-based network compared to a peer-to-peer network?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!