Reminder: for each class session and associated homework:
|
funcPlot.py
that implements
the following design:
cos.txt
output
from funcDump. (Note: you must place cos.txt
in
the same folder as funcPlot.py
to read it.) You may also
test using the sample outputs for different functions below. (The
functions are "upside down" because of the graphics coordinate system.
You could fix that by using zellegraphics' win.setCoords() method if
you so desired, but we won't require it.)
(40 points) Photo slideshow. (Note: we suggest that you do the funcPlot problem above BEFORE the SlideShow problem. Doing so will help you through some of the file reading issues that may otherwise hang you up in SlideShow.) These days, many people use their computer as a "digital shoebox" of photographs. You will write a program to present a slideshow of a number of photos, in an order that you specify in a text file.
slideshow.py
that implements
the following design:
Notes and Hints:
photo
, use photo.undraw()
help string.strip()
for
details). Unfortunately, slicing with a negative index (myList[:-1])
doesn't work on Windows like you might expect.