Question: Can someone help me with the code in Chapter 8 exercise 2 Butterfly Chase Learning to Program with Alice?. These are the textbook instructions. I

Can someone help me with the code in Chapter 8 exercise 2 "Butterfly Chase" Learning to Program with Alice?. These are the textbook instructions. I would like to send you the attachment for you to see what I did wrong but not sure how to send the attachment?

Here are the textbook instructions: Use recursion to make the white rabbit (Animal) chase a butterfly (Animals/Bugs). The butterfly should fly to a random, nearby location (within 0.2 meters in any direction). The white rabbit, however, must always remain on the ground (rabbits do not fly). Each time the butterfly moves, use turn to face to make the rabbit turn toward the butterfly and then move the rabbit toward the butterfly 0.5 meters. When the rabbit gets close enough, have him catch the butterfly in his net (Objects)

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!