# hw1.py - Ayo Osonowo import turtle platform#TODO Fill out...

• No School
• AA 1
• 2

This preview shows page 1 - 2 out of 2 pages.

# Ayo Osonowo: import turtle, platform #TODO: Fill out the Purpose, Input Parameter(s), and Return Value # for each of the two functions below in comments #Remember, you must place a # before any comment, or it will be # interpreted as Python code, and will probably cause errors. #Part 1: cents #========================================== # Purpose: counting coins # # Input Parameter(s): quarter, nickle, dimes, pennies # # Return Value: integer, how much money you have in cents # #========================================== def cents(quarters, dimes, nickels, pennies): total = 0 total += quarters*25 total += dimes*10 total += nickels*5 total += pennies return total #Part 2: draw_M #========================================== # Purpose: drawing the U of M M # # Input Parameter(s): None # # Return Value: A drawing of a U of M M # #========================================== def draw_M(): turtle.delay(0) turtle.bgcolor("gold") turtle.hideturtle() turtle.color("maroon") turtle.penup() turtle.setpos(-200,-100) turtle.pendown() turtle.begin_fill() turtle.forward(120) turtle.left(90) turtle.forward(64) turtle.left(90) turtle.forward(20) turtle.right(120) turtle.forward(80) turtle.right(120) turtle.forward(28)

Subscribe to view the full document.

• Fall '19

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes