Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago