INQ241A
Mobile Apps

Activity 2

Loops

  1. Create a new script that draws a pattern like the one below. It can have any number of lines and be any size as long as they form a regular pattern like the one below.

    burst
  2. Create a new script that uses a Turtle and a for loop to draw a pentagon, hexagon, and a triacontakaihexagon, that’s a polygon with 36 sides. The ploygons should be regular. Which means each side should be the same length and each corner should be the same angle. To do this you will need to calculate the angle exactly. Also, each shape have the same circumference. The drawing should look something like this:

    polygons
  1. Create a new script that draws a pattern of circles like the one below. It can have any size and can have any number of number of circles as long as they form a regular pattern like the one below.

    circles

Submission

Please show your source code and run your scripts for the instructor or lab assistant.