Question: This project is intended to provide a program to help the pupils practise calculating percentages. It contains a sprite named Flower, equipped with three costumes,
This project is intended to provide a program to help the pupils practise calculating percentages. It contains a sprite named Flower, equipped with three costumes, neutral, smile and frown. It also contains a custom block, shrink. Start by exploring the shrink block. Then create a program to achieve the following. When the user presses their space key Flower should wear the costume neutral, with its size set to 100%. The user should be asked to calculate a percentage, to the nearest whole number, in the format shown in Figure 1. Described image Figure 1 Example question in OUBuild Figure 1 Example question in OUBuild Both numbers should be whole numbers chosen at random. The first number (42, in the above example) should be between 1 and 100 inclusive. The second number (38, in the above example) should be between 1 and the first number inclusive. If the user gets the answer correct they should be told 'Right' and the flower should 'expand' to congratulate them. If they get the answer incorrect, they should be told so and given the correct answer, rounded, for example 'Wrong. The answer is 90', and the flower should 'shrink' in commiseration. Your program should use the following: The custom block shrink to make the flower shrink. You should not change the definition of this block. A custom block expand that you should create and define to make the flower 'expand'. There is no strict specification for expanding, but your block should involve the following: playing some
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
