CS 163-01 Programming Assignment #2: Catalog

Due Wednesday, January 28, by 2 p.m.

Write a program for managing a catalog of two different kinds of items: DVDs, and books.

This program does not need to take any command-line arguments, but it should repeatedly prompt the user for a command — a single letter suffices — and then do the commanded operation, as follows:

  1. display items sorted by titles
  2. display items sorted by prices
  3. quit
  4. read list of items from file -- need to get name of file from user
  5. store list of items into file -- need to get name of file from user
Details of requirements for your work for this assignment are as follows: You'll need to prepare a file with a list of items in it.

For your submission, provide a printout of your code and a printout of a demonstrattion of your program. 

For a 'grade' better than a "B", use good style.  For even better grades, use good style and implement further operations such as enabling the user to add new items to the list, change prices, etc.


(Copyright © 2009 by Hugh McGuire   -- for thoughts about this, see:   http://www.cs.ucsb.edu/~mcguire/teaching/copyright_thoughts.html )