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.
- Your end result should look something like this:
![proj3 part2 project 3 after the user types in name](Project4Demo.png)
You need to have at least three functions.
- Your main function.
- a function called load_picture
- this function needs to take a string as a parameter (the name of the
image to load)
- This function must return the graphics.Image object that you loaded.
- A function called draw_picture
- this function should take a graphics.GraphWin as a parameter and a
graphics.Image as a parameter
- 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:
- Your name (There
will be credit assigned for this stuff)
- Anything that was left undone
- Anything that I need to know to run the
program correctly.
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..