Write a program that defines and then uses a class called MP3TrackClass that expands on the record you used to implement Assignment 7 (Program 5, Chapter 11). The member data consists of the track name and the artist name at a minimum. The MP3TrackClass class should have member functions that:

  • Print the track data using characters.
  • Return the track name given the Artist name.
  • Return the Artist name given the track name.
  • Set the Artist name.
  • Set the track name.
  • Compare this Artist name with another Artist name for greater, less than, or equal.

Also, define and use a class called MP3TrackList, that defines an array of type MP3TrackClass and has member functions that:

  • Add a track to the array.
  • Sort the tracks in the array by Artist.
  • Delete a track of the array.
  • Return the index of the array element that matches an Artist name.
  • Return the index of the array element that matches a track name.
  • Read in the track array from a file.
  • Write out the track array to a file.

The main program should input the data from a file to fill the array. You may make the file any way you want, but it will be easier if the artist and track names are on separate lines.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.