Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 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,
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago