Brevet (DNB) 2024 — Mathematics general stream, Amérique du Nord 29 mai 2024 — exercise 5 : Coded Figure and Scratch Program (official exam paper)
Statement
In this exercise, we consider the coded figure shown opposite.
Figure data: points A, C and E are aligned; points B, C and D are aligned; $\mathrm{AB}=240$ mm; $\mathrm{CE}=80$ mm. The figure indicates that $\widehat{A}=60^\circ$ and that the angle at B of triangle ABC has the same coding; triangle CDE is coded with its three sides of equal length. The drawing is not to scale.
Part A
1. Show that triangle ABC is equilateral.
2. Show that lines (DE) and (AB) are parallel.
Part B
The following program is given; it makes it possible to draw the previous figure.
This program includes a variable named “side”.
Lengths are given in steps: 1 step represents 1 mm.
Recall that the instruction “point in direction 90” means that the sprite faces horizontally to the right.
Program:
line 1: when green flag clicked;
line 2: go to x: -180 y: -150;
line 3: point in direction 90;
line 4: set side to ...;
line 5: run the triangle block;
line 6: turn left 60 degrees;
line 7: move 240 steps;
line 8: set side to side / 3;
line 9: run the triangle block.
Triangle block:
define triangle; pen down; repeat 3 times: move side steps, then turn left 120 degrees; pen up.
1. What are the coordinates of the sprite’s starting point? No justification is required.
2. What value should be entered on line 4 in the program? No justification is required.
3. The sprite starts in square D8. In which square is it when it has just executed line 7 of the program? No justification is required.
Associated grid: columns A to J and rows 1 to 8. The sprite’s starting point is indicated in square D8. A path connects successively squares D8, J8, F1, H1 and then returns toward D8.
4. Explain the instruction “side / 3” on line 8 of the program for drawing the figure.
⏳ 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