Run GridWorlds BugRunner program. Perform the following operations and answer the questions: a) Move the rock to
Question:
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 Answer:
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean