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 playlist.

ID: 3913714 • Letter: S

Question

Suppose you are writing software for a radio station that manages its playlist. The program will generate candidate playlists from 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 playlist 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 that you considered, your evaluation of your design decisions, and the reasoning for your final choice.

Explanation / Answer

Introduction:

Here We can use map data structure. It provides fucntionality of key value pairs, key value pairs will be implemented for every state

like song being connected to a particular plalist.

Methods:

createList(list songs)

addNewSong(playList playListName, song songName)

playlist(playList playListName, song songName)

deletelist(playlist playlistName, song songName)

classes:

class playList

{

string name;

list<songs> songList;

boolean played;

int no_of_played;

}

class song

{

string name;

int t_length;//seconds

string type,gere;

}

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