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. What is 45% of 294 (to the nearest whole number)? 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: 0 o 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. 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 5 of 13/n(8 marks) b. obtaining user input and taking the appropriate actions. (12 marks) Take a screenshot of your scripts and paste it into your TMA document. Save your OUBuild project for Question 2 and submit it as TM111_02_02_PI. sb2 (where Pl is your Ou personal identifier, e.g. A1234567) in your TMA zip file. Alternatively, you may use your OUCU instead of your Pl.
Fig: 1
Fig: 2