Questions about the math should be asked in class. This is not one of the objectives of the assignment! So ask if you need some help on the arithmetic!
Challenges
Make your program very accurate
Have your program move forward and then draw the figure based on a color seen. Let the color pick the number of sides.