Question: Can you show the code used to complete this exercise? From Learning to Program with Alice chapter 5 exercise 13 13. Penguin Slide A favorite

Can you show the code used to complete this exercise? From Learning to Program with Alice chapter 5 exercise 13
 Can you show the code used to complete this exercise? From

13. Penguin Slide A favorite activity of penguins in the local zoo is to slide down an icy slope into a pool of water in the pond. Create a world with a lake scene (Environments) and three pen- guins (Animals) on the slope, as shown below. Make the program event-driven. Allow the user to click on the next penguin to slide down the slope into the pool of water. Each penguin slides on its belly and spins around as it slides. Each penguin should spin some number of times. When the penguin reaches the pond, move the penguin down 5 meters so it disappears below the water. Write only one event handling method. When the pen- guin is mouse-clicked, pass the penguin object that was clicked and the number of times the penguin is to spin around as it slides down the slope. Optional: Add a water-splash sound as the penguin hits the water 13. Penguin Slide A favorite activity of penguins in the local zoo is to slide down an icy slope into a pool of water in the pond. Create a world with a lake scene (Environments) and three pen- guins (Animals) on the slope, as shown below. Make the program event-driven. Allow the user to click on the next penguin to slide down the slope into the pool of water. Each penguin slides on its belly and spins around as it slides. Each penguin should spin some number of times. When the penguin reaches the pond, move the penguin down 5 meters so it disappears below the water. Write only one event handling method. When the pen- guin is mouse-clicked, pass the penguin object that was clicked and the number of times the penguin is to spin around as it slides down the slope. Optional: Add a water-splash sound as the penguin hits the water

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!