private String songTitle; private String albumName; private String artistName; private int releaseYear;
// Constructor public Music( String title, String album, String artist, int year ) { } // Get methods public String getTitle() { } public String getAlbum() { } public String getArtist() { } public int getYear() { }
public double getPrice() { }The algorithm for determining the price is $1.09 for titles released before 1970, $1.59 for titles released in the 1970's, $0.59 for titles released in the 1980's, $1.19 for titles released in the 1990's, and $1.39 for titles released on 2000 and later. The reasoning for this is that some decades have better music than others!
0: <title 0>, <album 0>, <artist 0>, <year 0> 1: <title 1>, <album 1>, <artist 1>, <year 1> 2: <title 2>, <album 2>, <artist 2>, <year 2> ... n: <title n>, <album n>, <artist n>, <year n>
Total cost: $13.68