Brevet (DNB) 2021 — Mathematics general stream, Centres Étrangers 15 juin 2021 — exercise 3 : Calculation programs (official exam paper)
Statement
A teacher gives his students three calculation programs, two of which are carried out using programming software.
Program A: when the green flag is clicked, ask “choose a number” and wait; set the variable “chosen number” to the answer; set “Value 1” to $1 +$ chosen number; set “Value 2” to $3 \times$ Value 1; set “result” to Value 2 $- 3$; say “We obtain” followed by the result for 2 seconds.
Program B: when the green flag is clicked, ask “choose a number” and wait; set the variable “chosen number” to the answer; set “Value 1” to chosen number $+ 3$; set “Value 2” to chosen number $- 5$; set “result” to Value 1 $\times$ Value 2; say “We obtain” followed by the result for 2 seconds.
Program C: choose a number; multiply by 7; add 3; subtract the starting number.
1. a. Show that if 1 is chosen as the starting number then program A displays “We obtain 3” for 2 seconds.
b. Show that if 2 is chosen as the starting number then program B displays “We obtain $-15$” for 2 seconds.
2. Let $x$ be the starting number, what literal expression is obtained at the end of the execution of program C?
3. A student claims that with one of the three programs we always obtain three times the chosen number. Is he right?
4. a. Solve the equation $(x + 3)(x - 5) = 0$.
b. For which starting values does program B display “We obtain 0” ?
5. For which starting value(s) does program C display the same result as program A?
⏳ 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