Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started