Question: Activity Worksheet 2 - Move the Goal Posts CMPUT 101 using the beeperbot program. In your program for part 1, you may want to include

 Activity Worksheet 2 - Move the Goal Posts CMPUT 101 using

Activity Worksheet 2 - Move the Goal Posts CMPUT 101 using the beeperbot program. In your program for part 1, you may want to include soine subroutines that can be used in parts 2 and 3. For this reason, please read all questions before writing any programs. 1. In this problem you are asked to write a BeeperBot program to move one bed Initially the robot will be facing north and standing on a cell containing one beeper. There will be a second beeper somewhere (one or more spaces) to the north. Your program should find this second beeper, destroy it, and replace it with a beeper that is twice as many steps away from the starting cell. Below are two examples. In Example 1, BB must take one step in the initial world to reach the second post, and in effect. move that post to its new position 2 steps north of the robot's initial position. In Example 2, 3 steps become 6 steps. Initial Final Initial Final Example 1 Example 2 Activity Worksheet 2 - Move the Goal Posts CMPUT 101 using the beeperbot program. In your program for part 1, you may want to include soine subroutines that can be used in parts 2 and 3. For this reason, please read all questions before writing any programs. 1. In this problem you are asked to write a BeeperBot program to move one bed Initially the robot will be facing north and standing on a cell containing one beeper. There will be a second beeper somewhere (one or more spaces) to the north. Your program should find this second beeper, destroy it, and replace it with a beeper that is twice as many steps away from the starting cell. Below are two examples. In Example 1, BB must take one step in the initial world to reach the second post, and in effect. move that post to its new position 2 steps north of the robot's initial position. In Example 2, 3 steps become 6 steps. Initial Final Initial Final Example 1 Example 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!