Question: JAVA OOP UML design UML only Design A portable music player device, such as MP3 or iPod, stores a list of music tracks. 'Tracks have

JAVA OOP UML design

UML only

Design A portable music player device, such as MP3 or iPod, stores a list of music tracks.

'Tracks have a name, a duration and a unique identifier.

A track should be playable on different devices.

A list of tracks should be able to be sorted in increasing order of duration (from shortest to longest).

The player should have the following functions: (i) adding a new track to the list: this can be either by adding the new track to the end of its track list, or by inserting the new track at a given position in the list; (i) removing a track from the list; (i) playing all the tracks from the list in order; (iv) playing all the tracks from the list in a random shuffled order;

(v) switching the positions of two tracks in the list. Tasks. (a) Draw a UML diagram showing the class design of the system described above. (b) Write code (Java or Python) pseudo-code,or point-by-point English to clearly describe how the functionalities (iv) and (v) above work.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!