Question
JAVA. Produce your own version of a Java-based music player called MyPod! The focus will be on the design and implementation of the MENU system
JAVA. Produce your own version of a Java-based music player called MyPod! The focus will be on the design and implementation of the MENU system and SONG objects with a varied feature set.
The MyPod will store Songs (
The only required methodology to accomplish these tasks is to use the proper tools (arrays, Class encapsulation, methods, etc.). It is recommended to have a SONG Class, a PLAYLIST Class, and a top-level MYPOD Class. The one rule is that you cannot use built-in sort/add/remove functions in Java Collections such as ArrayList.
Ruberic:
-UML for each class.
-Comments.
-Classes/Encapsulation/Inheritance.
-Constructors.
-Getters/Setters (Use of Private/Public).
-Sub-functioning and Re-use
-Internal Array Structures.
-Exception Handling (+Try-Catch Logic).
-Maintain a Playlist.
-Print all Songs to Screen.
-Sort by Title.
-Sort by Artist and by Third Option.
-Add a Song: (Allow the user to Add new Songs; ask for
minimum. Save the new Song to the Playlist)
-Remove a Song.
Bonus Super Points:
-Shuffle Mode: (Allow the user to pick Shuffle() mode, which will Randomly select all of your Songs and Print() the result; a new Shuffle() command should create a new order).
-Handle Custom Playlists: (Instead of just having one primary Playlist of all Songs, allow the user to create their own Playlists with only a subset of Songs saved. All other functions should work on this Playlist in particular (sorting, add/delete, etc.))
-Save/Load To/From File: (Allow the user to Save the current Playlist to a .txt file; the user should then be able to start the program over and Load that same .txt file to recover the Playlist; define your own format (recommend separate entries, even within one Song, by line) )
An example MyPod:
Welcome to MyPod v1.0! Welcome back! Your playlists were successfully loaded from file.
V View All Songs
A Add Song
R Remove Song
P View Playlists
N Create New Playlist
X Save and Exit
V
How would you like to view your songs?
G Sorted by Title
A Sorted by Artist (count per artist displayed)
L Sorted by Genre (count per genre displayed)
Y Sorted by Release Year
M Return to Main Menu
A
Britney Spears - 3
Hit Me Baby One More Time (1998)
Toxic (2001)
3 (2009)
Christina Aguilera - 2
Genie in a Bottle (1998)
Reflection (1999)
What would you like to do next?
V View All Songs
A Add Song
R Remove Song
P View Playlists
N Create New Playlist
X Save and Exit
R
How would you like to remove a song?
N By Name
L List all songs
M Return to Main Menu
L
Please select a song to remove
1 Hit Me Baby One More Time (Britney Spears)
2 Toxic (Britney Spears)
3 3 (Britney Spears)
4 Genie in a Bottle (Christina Aguilera)
5 Reflection (Christina Aguilera)
0 Return to Main Menu
Step 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