Question: ( 6 ) Implement the Remove song function. Prompt the user for the unique ID of the song to be removed. ( 4 pts )

(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" removt
(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-n(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 n, 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,
 (6) Implement the "Remove song" function. Prompt the user for the

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!