Write a Java class called Song to represent a song in a music collection. The data members of the Song class are String objects representing the song title, artist’s name and the album where the song can be found. These instance variables for the class are to have private access modifiers so you will need to write the appropriate methods to allow the client to access the data values. In accordance with good programming practice you are to override the equals and toString methods. In addition, this class is going to be used in a Collection that is to be sorted, so it is to implement the Comparable interface. A second class is to be written called SongList that contains a main method that reads in a file name via the command line. The file is a listing of the songs on one of my playlists. In the file each song is on a single line. The line is formatted with the song name, the artist name and the album separated by a colon (:) and varying amounts of white space. Each playlist contains 70 songs. The program is to prompt the user to enter the name of an artist and provide a formatted list of all the songs by that artist that appear on the playlist, grouped by album and in alphabetical order by song title. If no songs by the given artist are on the playlist, an appropriate message is to be displayed

Practical Management Science
6th Edition
ISBN:9781337406659
Author:WINSTON, Wayne L.
Publisher:WINSTON, Wayne L.
Chapter2: Introduction To Spreadsheet Modeling
Section: Chapter Questions
Problem 20P: Julie James is opening a lemonade stand. She believes the fixed cost per week of running the stand...
icon
Related questions
Question

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

A second class is to be written called SongList that contains a main method that reads in a file name via the command line. The file is a listing of the songs on one of my playlists. In the file each song is on a single line. The line is formatted with the song name, the artist name and the album separated by a colon (:) and varying amounts of white space. Each playlist contains 70 songs.
The program is to prompt the user to enter the name of an artist and provide a formatted list of all the songs by that artist that appear on the playlist, grouped by album and in alphabetical order by song title. If no songs by the given artist are on the playlist, an appropriate message is to be displayed.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Data analytics tools
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, operations-management and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Practical Management Science
Practical Management Science
Operations Management
ISBN:
9781337406659
Author:
WINSTON, Wayne L.
Publisher:
Cengage,
Operations Management
Operations Management
Operations Management
ISBN:
9781259667473
Author:
William J Stevenson
Publisher:
McGraw-Hill Education
Operations and Supply Chain Management (Mcgraw-hi…
Operations and Supply Chain Management (Mcgraw-hi…
Operations Management
ISBN:
9781259666100
Author:
F. Robert Jacobs, Richard B Chase
Publisher:
McGraw-Hill Education
Business in Action
Business in Action
Operations Management
ISBN:
9780135198100
Author:
BOVEE
Publisher:
PEARSON CO
Purchasing and Supply Chain Management
Purchasing and Supply Chain Management
Operations Management
ISBN:
9781285869681
Author:
Robert M. Monczka, Robert B. Handfield, Larry C. Giunipero, James L. Patterson
Publisher:
Cengage Learning
Production and Operations Analysis, Seventh Editi…
Production and Operations Analysis, Seventh Editi…
Operations Management
ISBN:
9781478623069
Author:
Steven Nahmias, Tava Lennon Olsen
Publisher:
Waveland Press, Inc.