Computer Science AP Lab 10 - 3/25/03

Individual lab - hand in on paper (print-out acceptable if you can get the printers working)

Develop a class that represents a song.  The class will need to keep track of the name of the song, the artist who recorded the song, the year of the song (integer), and a rating of how good the song is (double).  You need to implement assessors and modifiers for each of these.  You should have 2 different constructors: a blank constructor, and a copy constructor (a constructor that takes in as an argument another variable of that type that copies over every variable).  In addition you need to overload the == operator to return a bool if both songs are EXACTLY the same (ie: the name, the artist, the rating, and the year ALL match), the = operator (to copy every property over to the current instance of the object), the > operator to return a bool that indicates if the rating of the current instance is > than the one in the right hand side, the < operator to do the same except smaller than, and the >=  and <= operators accordingly.  Note: for the most part all of the comparison operators will be VERY similar in design, so please just copy and paste that stuff.  (which is why printouts are acceptable for this assignment)

As always comment appropriately, and put your name, line #, and period on the paper.