Page 1 of 1

Create 11.19 Ch 8 Program: Playlist (C) , needs to be in C programming **do not use C++** need three files listed below

Posted: Sun May 15, 2022 10:08 am
by answerhappygod
Create 11.19 Ch 8 Program: Playlist (C) , needs to be
in C programming **do not use C++**
need three files listed below to make playlist
*PLEASE TEST CODE TO WORK !
my code: need to be fixed NO SCREENSHOTS OF CODE
PLEASE POST CODE TO COPY ONLY!
//main.c
#include <stdio.h>
#include <stdlib.h>
#include "PlaylistNode.h"
void PrintMenu(char playlistTitle[]);
// Main Function
int main(int argc, char* argv[])
{
char playlistTitle[50];
//prompt user for playlist title
//eliminate the end of line char
printf("Enter playlist's title:\n");
fgets(playlistTitle, 50, stdin);
playlistTitle[strlen(playlistTitle)-1]= '\0';
printf("\n");
//2) output playlist menu options
PrintMenu(playlistTitle); //this will be a big function
return 0;
}
// Function Definitions
//
void PrintMenu(char playlistTitle[])
{
//PlaylistNode * song[MAX];
PlaylistNode *songHead = NULL;
PlaylistNode *songTail = NULL;
PlaylistNode *songCurrent = NULL;
PlaylistNode *songLast = NULL;
// PlaylistNode *songNext = NULL; //really should be named
last
PlaylistNode temp;
//create a bunch of temp variables: chars, ints, and
PlaylistNode(pointers)
char menuOp=' ';
int tempLength = 0;
int songQuant = 0;
// char dummyVal = '0';
//output menu option
//create a loop to print your options
while(menuOp != 'q')
{
start:
printf("%s PLAYLIST MENU\n", playlistTitle);
//check for valid choices
PrintMenuOptions();
fflush(stdin);
//getchar();
menuOp='-';
scanf(" %c%*c", &menuOp);
printf("\n");
switch(menuOp)
{
//set corresponding menu actions
//switch menuOP
case 'a' :// Add a song
printf("ADD SONG\n");
printf("Enter song's unique ID:\n");
fgets(temp.uniqueID, 50, stdin);
temp.uniqueID[strlen(temp.uniqueID)-1]='\0';
printf("Enter song's name:\n");
fgets(temp.songName, 50, stdin);
temp.songName[strlen(temp.songName)-1]='\0';
printf("Enter artist's name:\n");
fgets(temp.artistName, 50, stdin);
temp.artistName[strlen(temp.artistName)-1]='\0';
printf("Enter song's length (in seconds):\n");
scanf("%d", &temp.songLength);
printf("\n");
// Set head pointer
songCurrent=(PlaylistNode*)malloc(sizeof(PlaylistNode));
CreatePlaylistNode(songCurrent, temp.uniqueID,
temp.songName, temp.artistName, temp.songLength, NULL);
if(songQuant == 0)
{
songHead = songCurrent;
songLast = songHead;
}
else
{
InsertPlaylistNodeAfter(songLast, songCurrent);
songLast = songCurrent;
}
songQuant++;
fflush(stdin);
getchar();
goto start;
case 'r' :// output playlist message
printf("REMOVE SONG\n");
printf("Enter song's unique ID:\n");
fflush(stdin);
fgets(temp.uniqueID, 50, stdin);
temp.uniqueID[strlen(temp.uniqueID)-1]='\0';
songCurrent=songHead;
if(strcmp(temp.uniqueID, songHead->uniqueID)==0)
{
printf("\"%s\" removed.\n\n", songHead->songName);
songHead=GetNextPlaylistNode(songHead);
}
else
{
while(songCurrent!=NULL)
{
if(strcmp(songCurrent->uniqueID, temp.uniqueID)==0)
{
strcpy(temp.songName,songCurrent->songName);
}
songCurrent=GetNextPlaylistNode(songCurrent);
}
songHead=delete_item(songHead, temp.uniqueID);
//while(songCurrent != NULL)
// {
printf("\"%s\" removed.\n\n", temp.songName);
}
songQuant--;
// goto exitwhile
// songNext=songCurrent;
// songCurrent=GetNextPlaylistNode(songCurrent);
// }
goto start;
//exitwhile:
case 'c' :// Prompt user for new song location
printf("CHANGE POSITION OF SONG\n");
int thissong = 0;
int nextsong = 0;
int numsongs = 0;
int difference = 0;
PlaylistNode* changer=NULL;
PlaylistNode* prechanger=NULL;
PlaylistNode* another=NULL;
printf("Enter song's current position:");
scanf(" %d", &thissong);
printf("Enter new position for song:");
scanf(" %d", &nextsong);
difference= nextsong-thissong;
songCurrent=songHead;
while(songCurrent!=NULL)
{
numsongs++;
songCurrent=GetNextPlaylistNode(songCurrent);
if(GetNextPlaylistNode(songCurrent)==NULL)
{
songTail=songCurrent;
}
}
// printf("number of sungs: %d\n", numsongs);
if(nextsong>numsongs)
{
nextsong=numsongs;
}
// difference=nextsong-thissong;
songCurrent=songHead;
for(int j=1; j<thissong; j++)
{
if(j+1==thissong)
{
prechanger=songCurrent;
}
songCurrent=GetNextPlaylistNode(songCurrent);
}
changer = songCurrent;
//PrintPlaylistNode(songCurrent);
if(nextsong==0)
{
prechanger->nextNodeptr=songCurrent->nextNodeptr;
changer=songHead;
songHead=songCurrent;
songHead->nextNodeptr=changer;
}
else if(difference>0)
{
if(songCurrent==songHead)
{

for(int p =1; p<nextsong; p++)
{
songCurrent=GetNextPlaylistNode(songCurrent);
}
another=GetNextPlaylistNode(songHead);
InsertPlaylistNodeAfter(songCurrent, songHead);
songHead=another;
}
}
else if(difference<0)
{
}
goto start;
case 's' :// search by artist
// fflush(stdin);
//getchar();
printf("OUTPUT SONGS BY SPECIFIC ARTIST\n");
printf("Enter artist's name:");
int k = 1;
fgets(temp.uniqueID, 50, stdin);
temp.uniqueID[strlen(temp.uniqueID)-1]='\0';
songCurrent=songHead;
printf("\n");
while(songCurrent != NULL)
{
if(strcmp(temp.uniqueID, songCurrent->artistName)==0)
{
printf("%d.\n", k);
PrintPlaylistNode(songCurrent);
printf("\n");
}
//printf("%d", k);
k++;
songCurrent=GetNextPlaylistNode(songCurrent);
}
goto start;
case 't' :// Output the total time of all songs of your playlist
in seconds
printf("OUTPUT TOTAL TIME OF PLAYLIST (IN SECONDS)\n");
songCurrent=songHead;
while(songCurrent!=NULL)
{
tempLength=tempLength+songCurrent->songLength;
songCurrent=GetNextPlaylistNode(songCurrent);
}
printf("Total time: %d seconds\n\n", tempLength);
goto start;
case 'o' :// output full playlist
printf("%s - OUTPUT FULL PLAYLIST\n", playlistTitle);
int i = 1;
if(songQuant==0)
{
printf("Playlist is empty\n\n");
}
else
{
songCurrent=songHead;
while(songCurrent != NULL)
{
printf("%d.\n", i);
PrintPlaylistNode(songCurrent);
printf("\n");
songCurrent=GetNextPlaylistNode(songCurrent);
i++;
}
}
case 'q' :// to quit/exit of loop
break;
default :
scanf(" %c", &menuOp);
printf("\n");
}
}
return;
}
//playlistNode.c
#include <stdio.h>
#include <stdlib.h>
#include "PlaylistNode.h"
// Constants
// Function Definitions
void CreatePlaylistNode(PlaylistNode* thisNode, char
idInit[],
char songNameInit[], char artistNameInit[],
int songlengthInit, PlaylistNode* nextLoc)
{
//1) set all your strings in thisNode to the input parameters, so
probably a strcpy
strcpy(thisNode->uniqueID,idInit);
strcpy(thisNode->songName, songNameInit);
strcpy(thisNode->artistName, artistNameInit);
thisNode->songLength=songlengthInit;
//2) Set all your integers in thisNode to the input
parameters
//
//3) Set the next Node pointer to nextLoc
thisNode->nextNodeptr=nextLoc;
return;
}
////////////////////////////////////////////////////////////////////////////////

void InsertPlaylistNodeAfter(PlaylistNode* thisNode, PlaylistNode*
newNode)
{
PlaylistNode* tempNext = NULL;
// 1) set temp to thisNode->nextPointer
// 2) update thisNode->NextPointer to newNode
// 3) set newNode->nextPointer to tempNext
tempNext= thisNode->nextNodeptr;
thisNode->nextNodeptr = newNode;
newNode->nextNodeptr = tempNext;
return;
}
////////////////////////////////////////////////////////////////////////////////

void SetNextPlaylistNode(PlaylistNode* thisNode, PlaylistNode*
newNode)
{
// 1) set the thisNode->NextNodeptr to newNode
// should be one or two lines of code
//newNode=thisNode->nextNodeptr;
thisNode->nextNodeptr=newNode;
return;
}
///////////////////////////////////////////////////////////////////////////////

PlaylistNode* GetNextPlaylistNode(PlaylistNode* thisNode) //this
one is done
{
//1) return the next member in the list
return thisNode->nextNodeptr;
}
void PrintPlaylistNode(PlaylistNode* thisNode)
{
// 1)Print each member of the PlaylistNode
//
printf("Unique ID: %s\n", thisNode->uniqueID);
printf("Song Name: %s\n", thisNode->songName);
printf("Artist Name: %s\n", thisNode->artistName);
printf("Song Length (in seconds): %d\n",
thisNode->songLength);
return;
}
//////////////////////////////////////////////////////////////

void PrintMenuOptions()
{
printf("a - Add song\n");
printf("r - Remove song\n");
printf("c - Change position of song\n");
printf("s - Output songs by specific artist\n");
printf("t - Output total time of playlist (in seconds)\n");
printf("o - Output full playlist\n");
printf("q - Quit\n\n");
printf("Choose an option:");
return;
}
/////////////////////////////////////////////////////////////////////////
int NumberOfSongs(PlaylistNode* thisNode[])
{
int numSongs = 0;
for(int i = 1; i<=MAX; i++)
{
if(thisNode[i-1]->songLength!='0')
{
numSongs++;
}
}
return numSongs;
}
///////////////////////////////////////////////////////
PlaylistNode * delete_item(PlaylistNode * curr, char x[MAX])
{
PlaylistNode* next;
if(curr == NULL)
{
// printf("not found\n");
return NULL;
}
else if(strcmp(curr->uniqueID, x)==0)
{
next = curr->nextNodeptr;
free(curr);
return next;
}
else
{
curr->nextNodeptr= delete_item(curr->nextNodeptr, x);
return curr;
}
}
//PlaylistNode.h
#ifndef PLAYLISTNODE__INC__
#define PLAYLISTNODE__INC__
#include <string.h>
#define MAX 50
typedef struct PlaylistNode_struct
{
char uniqueID[MAX];
char songName[MAX];
char artistName[MAX];
int songLength;
struct PlaylistNode_struct* nextNodeptr; //address of next member,
null for last member
}PlaylistNode;
void CreatePlaylistNode(PlaylistNode* thisNode, char
idInit[],
char songNameInit[], char artistNameInit[],
int songlengthInit, PlaylistNode* nextLoc);
void InsertPlaylistNodeAfter(PlaylistNode* thisNode,
PlaylistNode* newNode);
void SetNextPlaylistNode(PlaylistNode* thisNode, PlaylistNode*
newNode);
PlaylistNode* GetNextPlaylistNode(PlaylistNode* thisNode);
void PrintPlaylistNode(PlaylistNode* thisNode);
void PrintMenuOptions();
int NumberOfSongs(PlaylistNode* thisNode[]);
PlaylistNode * delete_item(PlaylistNode * curr, char x[MAX]);
char getName(PlaylistNode * thisNode, char x[MAX]);
#endif /* ----- #ifndef PLAYLISTNODE__INC__ ----- */
Create 11 19 Ch 8 Program Playlist C Needs To Be In C Programming Do Not Use C Need Three Files Listed Below 1
Create 11 19 Ch 8 Program Playlist C Needs To Be In C Programming Do Not Use C Need Three Files Listed Below 1 (46.89 KiB) Viewed 44 times
11.19 Ch 8 Program: Playlist (C) You will be building a linked' list. Make sure to keep track of both the head' and tail nodes. (1) Create three files to submit. • PlaylistNode.h - Struct definition and related function declarations • PlaylistNode.c-Related function definitions • main.c- main() function Build the PlaylistNode class per the following specifications. Note: Some functions can initially be function stubs (empty functions), to be completed in later steps. . Private data members o char uniquelD[50] o char songName[50] o char artistName[50] o int songLength o PlaylistNodew nextNodePtr • Related functions • CreatePlaylistNode() (1 pt) o InsertPlaylistNodeAfter (1 pt) • a Insert a new node after node o SetNextPlaylistNode() (1 pt) Set a new node to come after node o GetNextPlaylistNode() • Return location pointed by nextNodePtr o PrintPlaylistNodel) Ex. Of PrintPlaylistNode output: Unique ID: S123 Song Name: Peg Artist Name: Steely Dan Song Length (in seconds): 237 (2) In main, prompt the user for the title of the playlist. (1 pt) Ex: Enter playlist's title: JAMZ (3) Implement the PrintMenu() function. PrintMenu() takes the playlist title as a parameter and outputs a menu of options to manipulate the playlist. Each option is represented by a single character. Build and output the menu within the function. If an invalid character is entered, continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call PrintMenu() in the main() function. Continue to execute the menu until the user enters q to Quit. (3 pts) Ex: JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song S - Output songs by specific artist t - Output total time of playlist (in seconds) - 0 - Output full playlist q - Quit S Choose an option: (4) Implement 'Output full playlist' menu option. If the list is empty, output: Playlist is empty (3 pts) Ex: JAMZ - OUTPUT FULL PLAYLIST 1. Unique ID: SD123 Song Name: Peg Artist Name: Steely Dan Song Length (in seconds): 237 2. Unique ID: JJ234 Song Name: All For You Artist Name: Janet Jackson Song Length (in seconds): 391 3. Unique ID: J345 Song Name: Canned Heat Artist Name: Jamiroquai Song Length (in seconds): 330 4. Unique ID: JJ456 Song Name: Black Eagle Artist Name: Janet Jackson Song Length (in seconds): 197 5. Unique ID: SD567 Song Name: I Got The News Artist Name: Steely Dan Song Length (in seconds): 306

(5) Implement the 'Add song' menu item. New additions are added to the end of the list. (2 pts) Ex: ADD SONG Enter song's unique ID: SD123 Enter song's name: Peg Enter artist's name: Steely Dan Enter song's length (in seconds): 237 (6) Implement the "Remove song'function. Prompt the user for the unique ID of the song to be removed. (4 pts) Ex: REMOVE SONG Enter song's unique ID: JJ234 "All For You" removed (7) Implement the 'Change position of song' menu option. Prompt the user for the current position of the song and the desired new position. Valid new positions are 1 - 1 (the number of nodes). If the user enters a new position that is less than 1, move the node to the position 1 (the head). If the user enters a new position greater than 7, move the node to position n (the tail). 6 cases will be tested: • Moving the head node (1 pt) Moving the tail node (1 pt) • Moving a node to the head (1 pt) • Moving a node to the tail (1 pt) • Moving a node up the list (1 pt) • Moving a node down the list (1 pt) Ex: CHANGE POSITION OF SONG Enter song's current position: 3 Enter new position for song: 2 "Canned Heat" moved to position 2 (8) Implement the 'Output songs by specific artist' menu option. Prompt the user for the artist's name, and output the node's information, starting with the node's current position. (2 pt) Ex: OUTPUT SONGS BY SPECIFIC ARTIST Enter artist's name: Janet Jackson 2. Unique ID: JJ234 Song Name: All For You Artist Name: Janet Jackson Song Length (in seconds): 391 4. Unique ID: JJ456 Song Name: Black Eagle Artist Name: Janet Jackson Song Length (in seconds): 197 (9) Implement the "Output total time of playlist" menu option. Output the sum of the time of the playlist's songs (in seconds). (2 pts) Ex: OUTPUT TOTAL TIME OF PLAYLIST (IN SECONDS) Total time: 1461 seconds 2640002007154.poxy

LAB ACTIVITY 11.19.1: Ch 8 Program: Playlist (C) 0/26 Submission Instructions Compile command gec PlaylistNode.c main.c -Wall -0 a.out - 1m We will use this command to compile pour code Upload your files below by dragging and dropping into the area or choosing a file on your hard drive. main.c PlaylistNode.h Drag file here or Choose on hard drive. PlaylistNodec Drag file here or Choose on hard drive. Drag file here or Choose on hard drive,

Latest submission - 5:45 PM CDT on 05/09/22 Total score: 20 / 26 Only show failing tests Download this submission Compiler warnings main.c: In function Print Menu': main.c:28:15: warning: variable 'songTail' set but not used [-Wunused-but-set-variab 28 | PlaylistNode +songTail = NULL; | ANNNN ► 1: Unit test A 1/1 Tests that CreatePlaylistNode(node, 'SD123'Peg: 'Steely Dan, 237, NULL) initializes a node correctly. Test feedback Node correctly initialized. 2: Unit testa 1/1 Tests that Insert PlaylistNodeAfter correctly inserts All For You's node after 'Peg's node. Test feedback Insert PlaylistNodeAfter() correctly inserts new node. 3: Unit testa 1/1 Tests that SetNextPlaylistNode() correctly sets 'Canned Heat' to be All For You's next node. Test feedback SetNext PlaylistNode() correctly sets next node 4: Compare output A 1/1 Input JAMZ q Your output correctly starts with Enter playlist's title: 5: Compare output A 2/ 2 Input JAMZ a Enter playlist's title: Your output JAMZ PLAYLIST MENU a - Add song r - Remove song C- Change position of song S - Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playlist q - Quit a Choose an option: 6: Compare output A 1/1 Input Dance List q Enter playlist's title: C Your output Dance List PLAYLIST MENU a - Add song r - Remove song - Change position of song S- Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playlist - Quit Choose an option: 7: Compare output A 2/2 JAMZ Input 0 a JAMZ - OUTPUT FULL PLAYLIST Playlist is empty Your output correctly ends with JAMZ PLAYLIST MENU a - Add song r - Remove song Change position of song S- - Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playlist - Quit Choose an option: 8: Compare output a 2/2 JAMZ Input SD123 Peg Steely Dan 237 4 ADD SONG Enter song's unique ID:

Input Steely Dan 237 q ADD SONG Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): JAMZ PLAYLIST MENU a - Add song r - Remove song Change position of song 5- Output songs by specific artist t t - Output total time of playlist (in seconds) Output full playlist q- - Quit 0 Your output correctly ends with Choose an option: JAMZ - OUTPUT FULL PLAYLIST 1. Unique ID: SD123 Song Name: Peg Artist Name: Steely Dan Song Length (in seconds): 237 JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song Output songs by specific artist t Output total time of playlist (in seconds) 0 - Output full playlist - Quit S Choose an option: 9: Compare output A 1/1 JAMZ a SD123 Peg Steely Dan 237 JJ234 All For You Janet Jackson 391 Input J345 Canned Heat Jamiroquai 330 a JJ456 Black Eagle Janet Jackson 197 SD 567 I Got The News Steely Dan 306 0 a JAMZ - OUTPUT FULL PLAYLIST 1. Unique ID: SD123 Song Name: Peg Artist Name: Steely Dan Song Length (in seconds): 237 2. Unique ID: JJ234 Song Name: All For You Artist Name: Janet Jackson Song Length (in seconds): 391 3. 3 Unique ID: J345 Song Name: Canned Heat Artist Name: Jamiroquai Song Length (in seconds): 330 Your output correctly ends with 4. Unique ID: JJ456 Song Name: Black Eagle Artist Name: Janet Jackson Song Length (in seconds): 197 5. Unique ID: SD567 Song Name: I Got The News Artist Name: Steely Dan Song Length (in seconds): 306 JAMZ PLAYLIST MENU a - Add song r - Remove song Change position of song 5 - Output songs by specific artist Output total time of playlist (in seconds) 0 - Output full playlist - Quit t Choose an option:

Exited with return code -11 (SIGSEGV). Output differs. See highlights bekww. Special character legend JAMZ SD123 Peg Steely Dan 237 a JJ234 All For You Janet Jackson 391 a J345 Canned Heat Jamiroquai 330 Input JJ456 Black Eagle Janet Jackson 197 a SD 567 I Got The News Steely Dan 306 C 1 3 o a C PLAYLIST MENU a - Add song r - Remove songe - Change position of song Output songs by specific artiste t Output total time of playlist (in seconds) 0 - Output full playlist ধূ q - Quite S Choose an option: ADD SONG: Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song 5 - Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playlist q - Quit Choose an option: ADD SONG Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): e JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song 5 - Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playliste 4- Quite Choose an option: ADD SONG Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): Your output ends With C JAMZ PLAYLIST MENU a - Add song r - Remove songe c - Change position of song 5 - Output Songs by specific artista t - Output total time of playlist (in seconds) 0 - Output full playlist - Quite S Choose an option: ADD SONG Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): C JAMZ PLAYLIST MENU a - Add song r - Remove songe Change position of song 5 - Output songs by specific artiste - Output total time of playlist (in seconds) Output full playlist q - Quite S t 0

Your output ends with Enter artist's name: Enter song's length (in seconds): C JAMZ PLAYLIST MENU a - Add song r r - Remove songe C - Change position of song s - Output Songs by specific artiste t - Output total time of playlist (in seconds) 0 - Output full playlist - Quite Choose an option: ADD SONG Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): ( C JAMZ PLAYLIST MENU a - Add song r - Remove songe C - Change position of song s s - Output songs by specific artista t - Output total time of playlist (in seconds) 0 - Output full playlist - Quite لی Choose an option: ADD SONGS Enter song's unique ID: Enter song's name: Enter artist's name: Enter song's length (in seconds): JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song 5 - Output songs by specific artist t - t - Output total time of playlist (in seconds) 0 - Output full playlist - Quit 0 Choose an option: CHANGE POSITION OF SONG Enter song's current position: Enter new position for song: n CHANGE POSITION OF SONG Enter song's current position: Enter new position for song: "Peg" moved to position 3 JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song 5 - Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playlist q - Quit Choose an option: JAMZ - OUTPUT FULL PLAYLIST, 1.4 Unique ID: JJ2344 Song Name: All For You Artist Name: Janet Jackson. Song Length (in seconds): 3914 2.4 Unique ID: 13454 Song Name: Canned Heat Artist Name: Jamiroquai Song Length (in seconds): 330 Expected output ends with 3. Unique ID: SD1234 Song Name: Pege Artist Name: Steely Dan Song Length (in seconds): 2374 4. Unique ID: JJ456 Song Name: Black Eagle Artist Name: Janet Jackson Song Length (in seconds): 1974 5 5. Unique ID: SD 567 Song Name: I Got The News Artist Name: Steely Dan Song Length (in seconds): 306 JAMZ PLAYLIST MENU a - Add song r - Remove song C - Change position of song 5 - Output songs by specific artist t - Output total time of playlist (in seconds) 0 - Output full playlist - Quit Choose an option: 13: Compare output a 0/1 Exited with return code -ll (SIGSEGV). Output differs. See highlights below. Special character legend

15: Dampare output A 0/1 Exited with ceted code -11 (SIGSECV). (). Output differs. See highlights below. ergard JAMS 2 90123 Peg Steely Dan 237 JJ234 All Pos You Janet Jackson 391 Input J345 Canned Heat Jamie quai 330 . JJ456 រ Black Eagle Janet Jackson 197 . 90562 I Cut The Hewa Steely Dan 306 3 5 9 playlist's title: JAME PLAYLIST MENU - Add song - Remove song 4 - Change position of song 3 - Output onge by specific actit E - Output Eatal time of playlist (is seconda ů - Output full playlist 4 - Quit- Choose an option ADD SOCH Estec song's unique ID: Enter sung's name: Ente acciat's name: Entec song' length (in seconda) :- JAME PLAYLISI MENU - Add ang E - Remove song - 4 - Change position of song - Output sanga by specific artist E - Output total time of playlist (in seconda 0 - Output full playlist 4 - Quit Choose an option: ADO SONG Entec song's unique ID: Entes song'. : Estee Lista A: Entes song'. length (in secunda) : JAME PLAYLISI MENU - Add song = - Remove song. - Change position of song 3 - Output onge by specific actit E - Output total time of playlist (in seconda ů - Output full playlist 4 - Quit Chade a atin: ADD SOUGH Entec song's unique IDTH Entec song's name: Enter aliata Ente sang' length (in secunda) :- Your output ends with JAME PLAYLISI MENU - Add ang E - Remove song. 4 - Change position of song 3 - Output onge by specific actit E - Output Eatal time of playlist (in seconda) . - Output full playlist 4 - Qwit- Choose an option ADD SCH Entec song'wique ID: Entec song's name: Etec actat Entec song'lengt(in secunda) :- JAMS PLAYLISY MENU - Add ang E - Remove song. - Change position of sung - Output onga by specific astiat E - Output total time of playlist (in seconda 0 - Output full playlist 4 - Quit Choose a atin ADD SOCH Estec song's unique ID: Eatee song's name: Entec acciat's name: Entec song'lengt(in seconda): JAME PLAYLIST MENU - Add song - Remove song - Change position of song 1 - Output sanga by specific artist - E - Output total time of playlist (in secunda; 0 - Output full playlist 9 - Quit Choose an option: CHANCE POSITION OF SONG Entec song's cuecent position: Estee new position foc song: JAXE - QUIPUT PULL PLAYLISI 1. Unique ID: 90123 Song Name : Peg keliat wame: steely Dan Song Length (in seconda): 237- Unique ID: 1234 Song Name : A11 For You Actiat a: Janet Jacka Song Length (in seconda): 391- Unique ID: JJ456 Song Name: Black Eagle Actiat Hane: Janet Jackson Song Length (in seconda): 1977