Brevet (DNB) 2025 — Mathematics general stream, Métropole Antilles Guyane 26 juin 2025 — exercise 4 : Calculation programs and Scratch (official exam paper)
Statement
At the « Mathsetmagie » club, we have fun creating calculation programs that are more or less magical.
Part A: Zoé’s program
Here is Zoé’s calculation program:
Zoé’s program:
• Choose a number
• Subtract 4
• Multiply by 2
• Add 8.
1. Verify that if you choose 10 as the starting number, you get 20 with this program.
2. What result do you get with this program if you choose $-7$ as the starting number?
3. Zoé claims that her program is « magical » because, whichever number is chosen, the result is always twice the starting number. Is she right?
Part B: Fred’s program
Fred decides to make his calculation program in Scratch:
Description of Fred’s Scratch program: when the green flag is clicked; ask « Choose a number » and wait; set the variable result to answer $\times 4$; set result to result $+ 10$; set result to result $\times 5$; say result.
4. Show that if the starting number is $x$, the result obtained with Fred’s program is $20x+50$.
5. What number should be chosen at the start to obtain 75 with Fred’s program?
Fred wants to modify his Scratch program by adding a sixth line before the display: after the previous lines, an incomplete line says « set result to [empty box] $-$ [empty box] », then « say result ».
6. Seeing that his program is not magical at all, Fred wants to modify it so that the result is always 20 times the starting number. Copy and complete the sixth line of the program on your answer sheet so that this is the case.
⏳ Solution not generated yet
Open this statement in Expert Maths AI: the step-by-step solution is computed on demand, checked by a second resolution, then published here for everyone.
📝 See the solutionHave a similar exercise? Get it solved step by step, for free.
🧮 Solve my exercise