Exercise: Drawing a Star

  1. Use LineTo() and Ellipse() to draw the following figure.
  2. Hint: You may need to include <cmath> to utilize the sin() and cos() function.
  3. Note: You should draw a star which is symmetric to the y-axis, so that it looks like a "standing star" instead of a lying-down star.
ex-star.png