""" Author: Consulted: Date: Spring 2022 Purpose: Lab03, Fruitful String Functions Filename: cake.py """ from turtle import * from turtleBeads import * def cake(height, width, color): '''Draws a two layer cake where the bottom layer has given height and width and the second layer is 50% width and same height as bottom layer ''' pencolor(color) pensize(5) drawRectangle(width, height) hop(height) # move up vertically drawRectangle(width*.5, height) hop(-height) # put turtle back in starting position return 0 def candle(height): '''Draws a blue candle with given height and fixed width of 20 ''' pencolor('blue') fillcolor('blue') begin_fill() drawRectangle(20, height) end_fill() hop(height) hop(-height/5) # draw flame pencolor('orange') fillcolor('orange') begin_fill() drawEllipse(height/3, 0.4) end_fill() # return to original position hop(-height) hop(height/5) # WRITE YOUR FUNCTIONS HERE