Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Suppose you are writing software for a radio station that manages its playlists.

ID: 3732296 • Letter: S

Question

Suppose you are writing software for a radio station that manages its playlists. The program will generate candidate playlists from a record library automatically and station personnel can then check and modify them. Disc jockeys must also be able to change playlists when they are used because what is actually played is often different from what is planned. The playlists are then used to generate reports for paying royalties. You must decide what sort of data structure to use to store playlists. Make a choice and write a design rationale. Your rationale should explain the factors that went into your decision, the design alternatives you considered, your evaluation of design decisions, and the reasoning for your final choice.

Please do it in a format design such as Introduction, body, & conclusion.

Explanation / Answer

Solution:

Introduction:

We are going to use map data structure, which will provide us the fucntionality of key value pairs, the key value pairs will be implemented for every state like song being connected to a particular plalist if it exists in that playlist.

Body:

Methods:

create palyList(list songs)
delete song(playlist playlistName, song songName)
addSong(playList playListName, song songName)
playSong(playList playListName, song songName)

classes:
class playList
{
string name;
list<songs> songList;
boolean played;
int no_of_played;
}
class song
{
string name;
int length; //this is in seconds
string gere, type;
}

Conclusion:

The factors which are used to design the above structure for  radio station software that manages its playlists, is suitable in the given case.

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote