Answered step by step
Verified Expert Solution
Question
1 Approved Answer
************PLEASE USE THE SCHEME(RACKET) LANGUAGE. DO NOT USE JAVA!!!****** 6. Design and implement a SCHEME object that represents a music library. Your music library should
************PLEASE USE THE SCHEME(RACKET) LANGUAGE. DO NOT USE JAVA!!!******
6. Design and implement a SCHEME object that represents a music library. Your music library should be able to store music track objects. You should be able to create a library by evaluating the make-music-library function which takes no parameters. Therefore, the music library starts with no tracks. Your music library object should expose the following functions add- which takes one parameter, a music track object, and stores it inside the library . find-by-artist which takes one string as a parameter, the artist's name, and returns a list of lists con taining the track title, artist, and album for all music track objects in the library which were recorded by the artist . find-by-title which takes one string as a parameter, the title of the music track(s) you wish to find, and returns a list of lists containing the track title, artist, and album for all music track objects in the library which share that title . find-by-album - which takes one string as a parameter, the title of an album, and returns a list of lists containing the track title, artist, and album for all music track objects in the library which were released as part of that albumStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started