Question: Spotify-like program to store information about audio files. To be clear, we will not be dealing with actual media files at all, just the meta-data

Spotify-like program to store information about audio files. To be clear, we will not be dealing with actual media files at all, just the meta-data about them (song name, artist, length, etc.) Write a C++ program that allows its user to input, store, and view a small amount of information about songs, in a mini song library. The program should hold the following information about each song.

  • Title (C++ string)

  • Artist (C++ string)

  • Duration (input as MM:SS)

  • Date Added (input as DD-MM-YYYY)

  • Time Added (input as HH:MM:SS, military time)

  • Explicit (C++ bool)

The program should initially prompt the user to make a selection by typing one of the following commands, with the following effects:

  • Type Add to add and store a new song to the library

  • Type Show to show all songs in the library, one per line

  • Type Exit to end the program

All other words that a user may type as input (including misspellings, incorrect capitalization, and anything else that does not exactly match the choices above), should generate an error, but should then continue to accept commands. Please do not worry too much about other kinds of errors yet, such as entering a letter when a digit is expected (this will likely throw your program into an infinite loop). Your program should continue to accept commands until the user enters Exit.

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!