#Giavanna Esposito
#CS 100 - 006
#HW 02, February 04, 2016

# Problem 2

import turtle
s = turtle.Screen()
t = turtle.Turtle()
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
s.bye()

# Problem 3

s = turtle.Screen()
t = turtle.Turtle()
t.left(45)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
t.left(90)
t.forward(100)
s.bye()

# Problem 4

# Pentagon

s = turtle.Screen()
t = turtle.Turtle()
t.forward(100)
t.left(72)
t.forward(100)
t.left(72)
t.forward(100)
t.left(72)
t.forward(100)
t.left(72)
t.forward(100)
s.bye()

# Hexagon

s = turtle.Screen()
t = turtle.Turtle()
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
s.bye()

# Heptagon

s = turtle.Screen()
t = turtle.Turtle()
t.forward(100)
t.left(360/7)
t.forward(100)
t.left(360/7)
t.forward(100)
t.left(360/7)
t.forward(100)
t.left(360/7)
t.forward(100)
t.left(360/7)
t.forward(100)
t.left(360/7)
t.forward(100)
s.bye()

# Octagon

s = turtle.Screen()
t = turtle.Turtle()
t.forward(100)
t.left(45)
t.forward(100)
t.left(45)
t.forward(100)
t.left(45)
t.forward(100)
t.left(45)
t.forward(100)
t.left(45)
t.forward(100)
t.left(45)
t.forward(100)
t.left(45)
t.forward(100)
s.bye()

# Problem 6

s = turtle.Screen()
t = turtle.Turtle()
t.penup()
t.goto(0, 0)
t.pendown()
t.circle(100)
t.penup()
t.goto(0, 25)
t.pendown()
t.circle(75)
t.penup()
t.goto(0, 50)
t.pendown()
t.circle(50)
t.penup()
t.goto(0, 75)
t.pendown()
t.circle(25)
s.bye()









