iPod Playlist

A program that mimics the functionality of a music playlist by first sorting the playlist, followed by shuffling the playlist with songs' consecution in mind.

Task - Create a program that sort and shuffle a list of songs received as input

  1. Read in user input from command line and store the artists and their songs.
  2. Sort the songs lexicographically via quick sort or merge sort and print out sorted songs by artist.
  3. Create playlist and shuffle tracks in the playlist using Knuth Fisher-Yates shuffle algorithm to create a random playlist where the same song cannot appear until 5 other different songs have. Finally, print the shuffled playlist onto the command line.

Fun Facts