Due Date: midnight, Friday, 21 September.
This assignment focuses on graphics from Chapter 4.
Submit the following programs via Blackboard:
- Write a program that displays a graphic display with your initials. Your display
should contain at least two letters and 5 different graphic objects. If your initials
consist of very few lines (for example, if they were II), add extra decoration
to the display so that you use 5 different graphics objects.
- Write a program that show a ball moving across the screen. The user should click on the
screen for the starting point, and the ball should move from top to bottom across the screen
for 1000 iterations of a loop.
- To slow down the movement so that it can be seen, include in your loop, the command
time.sleep(0.1) (also include the statement import time at the top of your program).
- If the user chooses a point close to the rightmost edge of the window, the ball will move out of view.
- Write a program that shows a small ball that slowly grows to fill the entire screen.
Use the setFill() to set the ball to your favorite color and the
time.sleep(0.1) (explained above) to slow down the growth so that it can be seen
by the user.
- Modify the bouncing ball example from Lab 3 so that the ball
bounces a little bit less each time. At the end, it should appear to roll across the
- Chapter 4, #9 (draw a rectangle from clicks)
For more information on using Blackboard, see the first
- Two of the five submitted programs will be chosen at random for grading.
- Assignments must be submitted by midnight on the date due.
- Every program should begin with a comment that includes your name and a brief description.
- No credit will be given for a late assignment.
- Extra credit will be awarded for graded programs that are submitted early. If a graded
program is submitted more than 12 hours early (before Friday noon), 1 extra credit point will be awarded. For
graded programs submitted more than 24 hours early (Thursday or earlier), 2 extra credit points will be awarded.
- Before submitting an assignment you are free to ask for help in class
(if your question might be of general interest), during office hours, and
by e-mail. Please take advantage of this.