Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions