#Start of Solution to Question 1 #End of Solution to Question 1 #Start of Solution to Question 2 #End of Solution to Question 2 #Start of Solution to Question 3 (you may test using cartoon-cow.jpg) #End of Solution to Question 3 #Start of Solution to Question 4 (you may test using bird.jpg) #End of Solution to Question 4 #Start of Solution to Question 5 (you may test using bird.jpg) #End of Solution to Question 5 #Start of Solution to Question 6 (you may test using bird.jpg) #End of Solution to Question 6 #Description: You will use the following function to answer questions 7(a-h). def drawSmileyFace(): face = makeEmptyPicture(400, 400, white) for j in range(1, 401, 40): for i in range(1, 401, 80): if (j/40) % 2 == 1: face.addRectFilled(black, i, j, 40, 40) else: face.addRectFilled(black, i+40, j, 40, 40) #Start of Solution to Question 7 #End of Solution to Question 7 (you can see the resulting image in drawn-by-q7.jpg) show(face) #Description: You will use the following function to answer questions 8(a-e). def printProduct(start, end): product = 1 factor = 1 for n in range(start, end+1, 1): if computeSum(n)%2 == 1: factor = factor + 1 else: factor = factor - 1 product = product * factor print product * factor #Solution to Question 8(a): #Solution to Question 8(b): #Solution to Question 8(c): #Solution to Question 8(d): #Solution to Question 8(e):