Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Java class called Song to represent a songin a music collection. The dat

ID: 3618559 • Letter: W

Question

Write a Java class called Song to represent a songin a music collection. The data members of the Song class areString objects representing the song title, artist’s name andthe album where the song can be found. These instance variables forthe class are to have private access modifiers so you will need towrite the appropriate methods to allow the client to access thedata values. In accordance with good programming practice you areto override the equals and toString methods. In addition, thisclass is going to be used in a Collection that is to be sorted, soit is to implement the Comparable interface.

Asecond class is to be written called SongList thatcontains a main method that reads in a file name via the commandline. The file is a listing of the songs on one of my playlists. Inthe file each song is on a single line. The line is formatted withthe song name, the artist name and the album separated by a colon(:) and varying amounts of white space. Each playlist contains 70songs.

The program is to prompt the user to enter the name of an artistand provide a formatted list of all the songs by that artist thatappear on the playlist, grouped by album and in alphabetical orderby song title. If no songs by the given artist are on the playlist,an appropriate message is to be displayed.

Itis expected that your program will be well documented and you arerequired to write a member method calledprintHeading that outputs the followinginformation to the console in an easy-to-read format: your name,the project number, the course identifier (CMSC 246), and thecurrent semester and year (Spring, 2010). You will call this methodas the first statement in your main method. All files must containa comment block at the beginning that includes the file name, allof the same information that was specified for the member functionprintHeading, and a brief description of the file’spurpose.



**i will post the songlist as a reply under this post**


thanks


Explanation / Answer

x.H

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote