Question: Run GridWorlds BugRunner program. Perform the following operations and answer the questions: a) Move the rock to the location of the bug. Then move the

Run GridWorld’s BugRunner program. Perform the following operations and answer the questions:

a) Move the rock to the location of the bug. Then move the rock to location (6, 0).

What happens when you move a rock to the location of a bug?

b) Insert a second rock at location (3, 9). Insert a red bug at (4, 4). Insert a blue bug at (5, 5). Adjust the directions of the two bugs so that they face each other.
After they face each other, what is the red bug’s direction and what is the blue bug’s direction?

c) Click “Step” and see what happens. Then click “Step” again and see what happens. Then Click “Run.” Adjust the speed and watch the behavior until you see regular repetition. Then stop the bug from running and delete one of the bugs.
What rules govern bug direction and motion?
What rules govern flower creation, deletion, and coloration?

Step by Step Solution

3.37 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a When a rock is moved to the location of a bug the bug will disappear from the grid In GridWorld ro... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction To Programming With Java A Problem Solving Approach Questions!