You are on page 1of 2

CS 210 PROGRAMMING ASSIGNMENT 4

For 32 points
Due on or before: Wednesday, August 11, 2010
No due date extensions

Book Cataloging System

Write a program to manage a Book Catalog. The catalog would contain a collection of
books (maximum of 500), with following fields of information: book code (unique for
each book; ISBN number; see attached sample data file booklist.txt for examples),
author’s last name, author’s first name, book title, year of publication and price. The
book catalog should use a file for storing the information on books.

The information in the file is sorted alphabetically by title of the book, with a tab
separating each piece of information about the book, with one book’s information per
line. Refer to sample file: booklist.txt for more details.

You are expected to make use of C++ Arrays and Structs (or Classes, if you understand
the concepts of designing and implementing these). You cannot use Vectors or other
collection classes available thru libraries.

The program should have the following features:

1. The program should allow the user to add a new book to the catalog. Use this
feature to initially create the book catalog. The program should ask for the
required information and then add the book to the catalog, only if there is no other
book with the same code in the catalog.

2. The program should allow user to find a book in the catalog, given one of the
following: author first name or last name or the book code. If the book is found,
all the information about the book should be displayed. If the book is not found,
an appropriate message should be displayed.

3. The program should allow you to delete an existing book from the catalog.

4. The program should have an option to display all the current books in the
catalog. This should display the books sorted on their titles (in alphabetical
order).
5. The program should have a menu driven interface to allow users to select one of
the options to perform the above tasks. The program should display appropriate
messages to the user for each operation, successful or not.

6. When exiting, the program should save the book catalog to file, taking in to
account any of the above changes, for future reuse.

Comment your code including: (1) Header with Course Name, Program Name, File
Name, Date, Programmer Name and Program Description, and (2) comments throughout
the source code.

TURN IN:
 source code file(s) and executable file
 sample runs file: This should convince me that your program works even before I
run it. Annotate to describe all the different tests that you've ran,
 short summary of your work: What does or doesn't work and why, any additional
functionality reasons or excuses for missing functionality. What you learned, what
you found difficult or unclear about the assignment, etc.

Do not include any intermediate project files.


Please retain a copy of everything that you submit for your records.

You might also like