Question: JAVA PROGRAMMING A music company approaches you and asks you to create a search system that can search through music stored in text files. They

JAVA PROGRAMMING A music company approaches you and asks you to create a search
system that can search through music stored in text files. They give you two text files:
Artists.txt and Songs.txt.Artist.txt holds the name of the music artist followed by
their albums names. Songs.txt holds the name of the song, the length of the song (in
minutes), the name of the artist who owns the song, and the name of the album to
which the song belongs.
The company wants to be able to search for a song by name and an album by name.
The search should return either a Song object or an Album Object. When searching for
a song you should use binarySearch()[Note: you will need to sort your list first].
When Searching for an album you should use sequentialSearch(). Once the song
or album has been located, you should print out all information related to the object. The
duration of the song or album should be printed in minutes and seconds (e.g.,3.4
minutes is 3 minutes and 24 seconds).
Your program should have 3 classes:
Artist
o Name
Album
o Name
o Artist (Artist Object)
o Number of songs on the album
o Total duration of the album (in minutes)
o Songs (List of Song Object)
Song
o Name
o Duration of song (in minutes)
o Artist Name
o Album Name
 JAVA PROGRAMMING A music company approaches you and asks you to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!