CS 115 Lab 6 Graphics (Individual)
This is an individual lab. Every student is expected to do
the individual activity by themselves and submit it by Sunday, October 15, midnight.
Individual submit link Submit your individual program with this link.
Use the Lab 6 menu choice and "Code" as the type
(since it is a py file).
Educational goals of this lab - verify that every student can:
- write some graphics code in Python
- learn a little about object oriented programming and the dot notation
watch videos on
(50 points) Individual Problem: Trying some graphics
- Write a program that draws a greeting card customized with a
person's name. You can choose the purpose of the card
(get well, sympathy, birthday, holiday, etc.)
You decide what drawing goes on the card.
- Your program must:
- (9 points) Ask the user for the name of the person the card is for. Use Text and Entry objects.
- (5 points) Display the person's name on the graphics window somewhere using a Text object.
- (5 points) Display some message on the theme of the card on the graphics window somewhere using a Text object.
- (6 points) Your Python program must use objects of least 6 different classes
(GraphWin, Points, Lines, Circles, etc.).
- (5 points) The program must use at least five colors (besides black and white!).
- (6 points) It must have a prolog (header) comment. Your name, section, email, purpose, pre- and post-conditions.
- (5 points) And put some other documentation in the program too! Mark off the different sections of code
with comments about what they draw.
- (9 points) Make SURE that you end your program with some
code that will make the user "Click to close window",
This habit will save you LOTS of headaches later!
Use a Text object to show a message "click to close window" and a getMouse
method to pause the program.
- Don't forget to close the window!
Here is an example (not a great one!).
Of course, do not duplicate this one! Use your creativity here!
- Submit your finished
program with the link above. Use the menu choices of Lab 6 and Code.
Remember NOT to leave files
on the local hard drives on University computers on
campus! Make sure you save your projects on a portable
storage device you take with you! Remember to LOG OFF!