subject

This question uses a robot in a grid of squares. the robot is represented as a triangle, which is initially facing toward the right side of the grid. the robot is moved according to the following instructions.
instruction explanation
move forward the robot moves one square forward in the direction it is facing
rotate right the robot rotates in place 90 degrees clockwise (i. e., makes an in-place right turn).
rotate left the robot rotates in place 90 degrees counter-clockwise (i. e., makes an in-place left turn).
repeat n times the block of instructions contained between the braces {} is repeated n times.
consider the following incorrect program, which is intended to move the robot around the perimeter of the grid below, as indicated by the arrows.
line 1: repeat 4 times
{
line 2: move forward
line 3: rotate right
line 4: repeat 4 times
{
line 5: move forward
}
line 6: rotate right
}
which lines of code should be removed so the program will work as intended? select two answers
a. line 2
b. line 3
c. line 4
d. line 5

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:20
Wireless communications is likely to be viewed as an essential part of an enterprise network infrastructure when: select one: a. mobile communication is needed b. communication facilities must be installed at low initial cost c. communication must take place in a hostile or difficult terrain that makes wired communication difficult or impossible d. the same information must be broadcast to many locations
Answers: 1
question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Which of the following tasks is an audio technician most likely to perform while working on a nature documentary? (select all that apply). eliminating potentially distracting background noise adding sound effects making sure the lighting is adequate for a particular scene changing the narration to better match the mood of the documentary
Answers: 3
You know the right answer?
This question uses a robot in a grid of squares. the robot is represented as a triangle, which is in...
Questions
question
Social Studies, 04.05.2021 19:50
Questions on the website: 13722367