Question: #include helpers.h / / should always use all songs when prompting to add to playlist void promptSongSelection ( Playlist allSongs ) { cout <

#include "helpers.h"//should always use all songs when prompting to add to playlist void promptSongSelection(Playlist allSongs){ cout << allSongs; cout << allSongs.getNumSongsLoaded()+1<<". Exit Program" <> userModType; }while(userModType<1|| userModType >4); system("clear"); switch(userModType){ case 1: exit = deleteSongFromPlaylist(playlist); break; case 2: exit = addSongToPlaylist(playlist, all); break; case 3: exit = false; break; case 4: exit = true; break; } if(playlist.getFirstSong()!= nullptr){ writePlaylistToFile(playlist); } return exit; } bool deletePlaylist(Playlist& playlist){//deletes all songs in playlist //then deletes the playlist object //dont forget to remove playlist text file from directory as well } bool manageExistingPlaylists(const Playlist& all, Playlist& selectedPlaylist){//this is the main menu from which most major choices are made //each time this function is called a new array of playlists and fills each object with the relevant data //an option to return to main menu should be provided //an option to exit program directly should be provided //user should select what playlist they want to

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 Programming Questions!