CS CAMP 2.0

Object Oriented Programming with Java

Tunes-R-Us Case Study: Sorting

In the process of reinventing the Tunes-R-Us stores, one thing that must be done is to develop an application to make is easier to download music and to maintain the music database.

The Tunes-R-Us browser (download the entire applet to run on your computer here) is exactly that. It will be an application that be run via a web-browser to make sure it can be used in as many environments as possible. The Java applet that you have been given is partially completed. So far, the applet can observe the music database in realtime to see who is downloading what songs.

You will be asked to complete the MusicDatabase class by completing the methods that sort the songs by the various attributes:

The documentation for the MusicDatabase class contains the header and contract for the four sort methods needed.

The zip file contains the all the Java source, and documentation needed to complete this project. You can test your algorithm by compiling your code and opening testTunesBrowser.html to launch the applet.

 

 

Feedback: newton@jayfox.net