Comp 151 Project 4

Using functions

Summary:

In this project you will practice using functions.

Due:

  Tuesday Feb 26th at 11:59pm.


Description:

You will write a python program use functions to draw pictures on the screen.

  1. Your end result should look something like this:

    project 3 after the user types in name

You need to have at least three functions.


  1. Your main function.
  2. a function called load_picture
    1. this function needs to take a string as a parameter (the name of the image to load)
    2. This function must return the graphics.Image object that you loaded.
  3. A function called draw_picture
    1. this function should take a graphics.GraphWin as a parameter and a graphics.Image as a parameter
    2. It should draw the picture four time in the diamond pattern that you see above

Additional  requirements:

You *MUST* use functions for this project. about 75-80% of the credit for the project will be for the functions, parameter passing and return values.


To help me identify your work, make the name of your program file

yourFirstInitialLastNameLab4.py

(so mine would be JSantoreLab4.py)
And put the following at the beginning of the program as a comment:


Project Submission

Submit your project via blackboard. For this forth project you need to submit the entire zipped project folder because I need your image and your graphics.py along with your code..