Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer as soon as possible using python as the programming language and explain what you did in detail. - design *one* set of cartoon

Please answer as soon as possible using python as the programming language and explain what you did in detail.

image text in transcribed

- design *one* set of cartoon eyes, *one* cartoon mouth, and *one* cartoon hat - separately test each function using code you write but do not include with your submission Your submission for this assignment: - must be a source code file with filename 'comp1405_w23_\#\#\#\#\#\#\#\#\#_assignment_08.py' - must use the pygame.draw functions (and not, for instance, the Surface "blit" method) - must implement the functions "draw_eyes", "draw_mouth", and "draw_hat" specified below" The function "draw_eyes" takes no arguments and has no returns. This function draws cartoon eyes on the surface named "win_sfc" and as though they were being drawn on a circle centered at position (150,250). The eyes must be drawn using at least the colours black and white, and the outline should be black. The function "draw_hat" takes no arguments and returns exactly one string. This function draws a cartoon hat (your choice of style) on the surface named "win_sfc" and as though it was being drawn on a circle centered at (250, 350). The function must use at least three colours, the outline should be black, and the string returned should desribe the "type" of hat in lowercase letters (e.g., "top hat", "baseball cap", etc.) The function "draw_mouth" takes two integer arguments - x and y - and has no returns. This function draws a cartoon mouth on the surface named "win_sfc" and as though it was being drawn on a circle that was centered at the position ( x,y). The mouth must be drawn using at least the colours black, white, and red, and the outline should be black. 1 Please note that overly simplistic designs (e.g., two circle eyes, a single arc mouth, etc.) will incur significant penalties. 2 Any submissions that does not contain at least these three specified functions will receive a mark of zero

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions

Question

Do you agree with the ninth Circuit Court ruling? Why or why not?

Answered: 1 week ago

Question

What are some of the possible scenes from our future?

Answered: 1 week ago

Question

1. What are your creative strengths?

Answered: 1 week ago