Bibliography Object

Assignment

Program a bibliography class, along with any supporting classes. Use these classes to print out an unsorted bibliography, for instance:

Dubay, Thomas, The Evidential Power of Beauty, San Francisco:  Ignatius 
Press, 1999.

Else, Liz, "Mary, Mary Quite Contrary," New Scientist, November 3, 2001. 

Feyerabend, Paul, "Anything Goes," The Truth About the Truth, 1995, pp. 
199-203.

You do not have to format the bibliography except for putting a blank line between the entries (i.e., no need to italicize titles, etc.) and quotation marks for article titles in magazines/journals. You also do not need to sort the entries alphabetically (though in my example the entries are sorted), nor do you have to include newlines (though in my example there are newlines added by hand for readability). The output when you execute some sort of write_to_screen() method in the bibliography class is just strings with a blank line between entries.

Side note: Note how the Else article does not have a page number, but it is an article. How will you deal with it? (You might want to use None and some sort of test.)

Solution

See the following web page.

Creative Commons License Updated: Friday, 24-Dec-2010 08:44:23 PST. Valid CSS, HTML. Author: Johnny Lin <email address>. Disclaimer. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License.