Using OUBuild (Scratch) This project is intended to provide a program to help the pupils…
- User
Using OUBuild (Scratch) 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. Figure 1 = "What percentage of 42 is 38 (to the nearest whole number)?"
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 form of music or sound, which you should bring into the project using any of the 'New sound:' facilities available in the Sounds pane the costume smile the sprite visibly increasing in size. We encourage you to design an algorithm before starting to create your program, and to test your program; however, for this question you are not required to submit anything other than the complete program.
Be sure to test your program in situations where the user gets the answer correct and in situations where they get the answer incorrect.
Marks will be awarded for the following:
a.Forming and displaying an appropriate percentage calculation question.
(8 marks)
b.Obtaining user input and taking the appropriate actions.
(12 marks)
- Assistant
- User
Could you translate the above pseudocode into exact Scratch blocks format please
- Assistant