Details Use Turtle to draw trees and people. the program should have four functions. the first function accepts a turtle object and color and draw a tree in that color. the core of the tree is equilateral triangle. the second function accepts a turtle object and a color and draw a human in that color.the function uses the circle function to draw the head of the human. the third function accepts a turtle object and draw a circle. the last function which is the main function prompts the user for the number of tree human pairs he would like to draw and their colors. the program then uses the tree and human functions to draw the number of tree-human pairs. for each pair, a tree should be draw first followed by human. the ground should be drawn in green connecting all the trees and humans. out p
Use Turtle to draw trees and people. the
the first function accepts a turtle object and color and draw a tree in that color. the core of the tree is equilateral triangle.
the second function accepts a turtle object and a color and draw a human in that color.the function uses the circle function to draw the head of the human.
the third function accepts a turtle object and draw a circle.
the last function which is the main function prompts the user for the number of tree human pairs he would like to draw and their colors. the program then uses the tree and human functions to draw the number of tree-human pairs. for each pair, a tree should be draw first followed by human. the ground should be drawn in green connecting all the trees and humans.
out put
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images