Question
This project is intended to provide a program to help the pupils practise calculating percentages. It contains a sprite, Dancer, equipped with four costumes, dancer1
This project is intended to provide a program to help the pupils practise calculating percentages. It contains a sprite, Dancer, equipped with four costumes, dancer1 - dancer4. It also contains a custom block, do happy dance.
Start by exploring the do happy dance block.
Then create a program to achieve the following.
When the user presses their space key, the Dancer should be positioned on the stage at the point with coordinates (0, 90), wearing the costume dancer1. The user should be asked a question about division and rounding, in the format shown in Figure 1.
The percentage (45, in the above example) should be a whole number chosen at random from 1 to 100 inclusive. The amount (294, in the above example) should be a whole number chosen at random from 100 to 500 inclusive.
If the user gets the answer correct, they should be told 'Correct' and the dancer should perform a 'happy' dance to congratulate them. If they get the answer incorrect, they should be told so and given the correct answer, for example, 'Incorrect. Answer is 132', and the dancer should perform a 'sad' dance in commiseration.
Your program should use the following:
- the custom block do happy dance to make the Dancer perform the 'happy' dance. You should not change the definition of this block.
- a custom block do sad dance that you should create and define, to make Dancer perform a 'sad' dance. The 'sad' dance should:
- start by setting the stage backdrop to 'night' and finish by setting it back to 'day', using the provided backdrops and a suitable Looks block which you should find and explore
- involve playing some form of music or sound, which you should bring into the project using any of the facilities available in the Sounds pane
- involve the costumes dancer3 and dancer4.
Show description Figure 1
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