From: Subject: TV Shows Date: Thu, 17 Apr 2008 08:21:27 -0400 MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://www.sci.brooklyn.cuny.edu/~goetz/1.5/assignment6a.html X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 TV Shows

Book Sorting Program:

A book contains:

Subject
Title

You can use either arrays or classes to store the data. If using arrays, make sure the indexes match.

Open up a data file called books.txt for reading. The data is listed as title|subject. Note that | separates the title from the subject.

Sort the books by subject. Display the results, with the proper headings, such as:
Subject        Title

Then resort the data by title:
Title        Subject

Use whatever sorting technique you like.