CS 1713 Introduction to Computer Science:
Comments on Project 3
This project was graded out of 20 points.
- The Tune class and its subclasses should not have any mutator methods.
- All fields must be private.
- Methods that are not part of the specification should be private.
- Don't forget to use DecimalFormat in the toString of Tune.
- Your TuneList should keep a count of the number of tunes in the array.
Use
Case Study 10
as a model.
- displayByTitle should not change the order of the list.
It does not help to reference the list by an alias and then sort it.
The following does not work:
     Tune[] newList = list;
     sort newList
     print newList
Instead use:
     Tune[] newList = new Tune[tuneCount];
     copy tuneCount elements from list to newList.
     sort newList
     print newList
- Note that if you make newList have length tuneCount
rather then list.length,
you can use the sorts from class with almost no change.
- If you did not get this project working you may use the solution below as
the starting point for Project 4, but you should write your own TuneTester.
Below is some sample code:
TuneTester.java
Tune.java
Podcast.java
Song.java
TuneList.java