Section 18.8 Check Point Questions5 questions
18.8.1
How do you obtain the midpoint between two points?
18.8.2
What is the base case for the displayTriangles method?
18.8.3
How many times is the displayTriangles method invoked for a Sierpinski triangle of order 0, order 1, order 2, and order n?
18.8.4
What happens if you enter a negative order? How do you fix this problem in the code?
18.8.5
Instead of drawing a triangle using a polygon, rewrite the code to draw a triangle by drawing three lines to connect the points in lines 71-77.