Hey coders and codettes!!! This coding problem was taken from CCSC's 2019 programming contest. It's a fun little problem that has a lot of good information, so I figured I'd share ;)
If you have any further questions, comments, or concerns, please contact me via...
Email: [email protected]
Instagram: sam.howe11
Facebook: Samuel Howell
Oh... and, as always... please like, comment, and subscribe!!!!!
To access the problem packet this problem came from, please visit
http://www.ccscse.org/programming_con...
and select the 2019 packet
Below is the problem statement in full:
You are parsing through a massive music library of MP3 files from multiple albums of your favorite artist. You want to develop a program which will quickly summarize the total songs and time you possess of that artist as well as a summary by album.
Input:
The input is in a very specific format consisting of two or more songs. Each line contains exactly five words that describe a song of your favorite artist in your MP3 library as follows.
Title Time (m:ss) Album Genre Track
None of the words have spaces --where there should be a space, there is instead an underscore.Track is a primary key, and you may assume no album has songs with the same track number. The last line of input will be a line with string -1, and should not be processed.
Output:
Your program should first print out the total MP3 files in your collection followed by the total time as seen below. This should be followed by a blank line. This is followed by the name of the album, a colon, a space, the number of songs, a comma, a space, and total time for that album in the format (m:ss). Album names should be appear sorted by title in ascending order. After each album, you will print out the title of each song on that album, sorted by track number. The format of each of these lines will be a single space, the track number, a period, a space, the song's name, a colon, a space and the song's time. All underscores should be turned back into spaces. There should be no blank lines in the output after the one on the second line.
Watch video MP3 Library Sorting coding problem (CCSC) online without registration, duration hours minute second in high quality. This video was added by user SAM_CODES_ 08 January 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4 once and liked it people.