Create a program that implements a music playlist using structures and files. The program must continue to run until the user picks exit.
Instructions: Kindly create a C language program and refer for the expected program output below: (I won't like your solution if there is any error, not properly debugged.)
Successfully loaded data!
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
There are no playlists yet!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 1
Enter playlist name: Taylor <3
Successfully added playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 1
Enter playlist name: Favorites <3
Successfully added playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 1
Enter playlist name: Taylor <3
Playlist name already exists!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 5
PLAYLIST: Taylor <3
SONG COUNT: 0
PLAYLIST: Favorites <3
SONG COUNT: 0
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 2
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 3
Invalid playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 2
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
Enter song title: Sparks Fly
Enter song artist: Taylor Swift
Enter song album: Speak Now
Successfully added song to playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 2
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
Enter song title: Invisible String
Enter song artist: Taylor Swift
Enter song album: folklore
Successfully added song to playlist!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 5
PLAYLIST: Taylor <3
SONG COUNT: 2
SONG TITLE: Sparks Fly
SONG ARTIST: Taylor Swift
SONG ALBUM: Speak Now
SONG TITLE: Invisible String
SONG ARTIST: Taylor Swift
SONG ALBUM: folklore
PLAYLIST: Favorites <3
SONG COUNT: 0
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 4
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
PLAYLIST: Taylor <3
SONG COUNT: 2
SONG TITLE: Sparks Fly
SONG ARTIST: Taylor Swift
SONG ALBUM: Speak Now
SONG TITLE: Invisible String
SONG ARTIST: Taylor Swift
SONG ALBUM: folklore
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 1
Playlist is still empty!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
THE SONG AVAILABLE ARE:
[0] Sparks Fly by Taylor Swift
[1] Invisible String by Taylor Swift
Enter song number to delete: 3
Invalid song number!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
THE SONG AVAILABLE ARE:
[0] Sparks Fly by Taylor Swift
[1] Invisible String by taylor Swift
Enter song number to delete: 0
Successfully deleted song!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 3
THE PLAYLIST AVAILABLE ARE:
[0] Taylor <3
[1] Favorites <3
Enter playlist number: 0
THE SONG AVAILABLE ARE:
[0] Invisible String by taylor Swift
Enter song number to delete: 0
Successfully deleted song!
-----------------------------
======= MENU =======
[1] Add Playlist
[2] Add Song to Playlist
[3] Remove Song from Playlist
[4] View a Playlist
[5] View All Data
[6] Exit
Enter choice: 5
PLAYLIST: Taylor <3
SONG COUNT: 0
PLAYLIST: Favorites <3
SONG COUNT: 0
-----------------------------
Step by step
Solved in 5 steps