Hello to everyone.I need a program in Haskell for an online music store that lets users construct and play playlists of music tracks. The site maintains a catalogue of both popular and classical tracks. Every track in the catalogue includes a title and a length (in minutes). Popular music tracks also include an artist; and classical tracks include a composer and a performer. The catalogue also needs to store a “playcount” for each track - the total number of times it has been played. The music store allows users to download all the tracks in a playlist; popular tracks cost 20p / minute; classical tracks cost 25p / minute.
It is suggested that you begin by developing (purely-functional) code to cover (most of) the required functionality, and then add to this the functions/actions that will comprise the program’s user interface.
The program should include functions that provide the following facilities:
[url removed, login to view] a new track to the catalogue of tracks
[url removed, login to view] a track (from the catalogue) to the end of the playlist
[url removed, login to view] the length (in minutes) of the entire playlist
[url removed, login to view] details of every track in the catalogue (including playcounts)
[url removed, login to view] details of every track in the playlist (playcounts not needed)
[url removed, login to view] the cost (in pounds) of downloading the entire playlist
[url removed, login to view] all tracks in the playlist – i.e. increment the track playcount (in the catalogue) for each track occurrence in the playlist
[url removed, login to view] the details of the most popular track in the catalogue (the one with the highest playcount)
also there is the same project in Python with the same functionallity.
please let me know