Computer Science 111, Fall Semester, 2006
Your task in this week's project is expand your Hw7 to use objects instead of strings and to obtain data from amazon.com.
Do the following:
cp hw7demo.py hw10.pyotherwise
cp hw7.py hw10.pyand use emacs to edit hw10.py.
Define a class called Site. The class Site is used
to make instances that contain
information about web sites. There are three items
of data stored in each object:
Design and then type in your class definition, using the following criteria and the example on page 402 of the textbook.
The Site instances are created
by calling the Site constructor, and passing in the
name of the Artist Name, a string.
Site will contain five methods, plus the __init__ method.
Call these methods getName, setProductName, getProductName, setLink, and getLink.
getcopy cdsites.txt
What to submit. Your program should be in a file called hw10.py. Submit this homework by the due date with the command submit homework10 hw10.py