Question 2 (20 marks) ធ This question focuses on Part 1 (sprite movement), Part 2 (arithmetic, rounding, joining strings
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question 2 (20 marks) ធ This question focuses on Part 1 (sprite movement), Part 2 (arithmetic, rounding, joining strings
Question 2 (20 marks) ធ This question focuses on Part 1 (sprite movement), Part 2 (arithmetic, rounding, joining strings, and custom blocks) and Part 3 (selection). It also involves the touching_color[]? block, introduced in Activity 3.2 of Part 3. Open the project TM111_02_Q2.sb2. This project is intended to provide a program to help the pupils practise percentage calculations involving prices. It contains a sprite named Bee, equipped with four costumes, bee1, bee2, bee3 and bee4. It also contains a custom block, go_home. Start by exploring the go_home block. Then create a program to achieve the following. • When the user presses their space key, Bee should be positioned at the point with coordinates (-180, 90), wearing the costume bee1. The user should be asked, in the format shown in Figure 1, to calculate a percentage of a price, to the nearest pound. What is 54% of £196 (to the nearest £)? Figure 1 Both numbers should be whole numbers chosen at random. The first number (54, in the above example) should be between 1 and 100 inclusive. The second number (196, in the above example) should be between 1 and 1000 inclusive. It is expected that the user enters a whole number without a £ sign for example 106 prime video W