Extended. You will enlarge a triangle on a grid and test the rule that areas are multiplied by the square of the scale factor.
Your tasks.
enlarge, return the image of the point p for the centre c and the scale factor k.image to the list of corners of the triangle after an enlargement with centre (2, 2) and scale factor 2.ratio to the area of the image divided by the area of the triangle. The function area is given.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…