Question
You have been asked to help complete a project called jTunes. The jTunes owners have been granted rights to create this application similar to iTunes
You have been asked to help complete a project called jTunes. The jTunes owners have been granted rights to create this application similar to iTunes by Apple because Apple is such a generous and giving company. J
The owners of the program have decided to test your skills a bit. They want you to complete the following items to get the program up and running.
To get the program to partially run first complete the following items:
Finish the Product class by completing the Comparable interface contract. You should compare the product code.
Alter the PlayList class by adding a field that has an ArrayList of products (I named my playlist). Be sure to alter the constructor and toString() methods to include this, and add a getter and setter for this new field.
Complete the following methods in the PlayList class:
getTopRated()
addToPlayList()
deleteFromPlayList()
Once those are complete the program should partially run. Run the program and study the code by hitting menu item 0 to load the data, and 1 to display it.
Now that youve completed the above steps and thoroughly impressed the owners, they want you to complete the rest of the program so you can reap big $$$bucks$$$!!!
Create two more classes (use Song as your template) called AudioBook and Movie. Make certain to include all instance variables and methods similar to those in Song.
Add the following to the MenuInfo class:
Uncomment the AudioBook and Movie instances (lines 41-49) and uncomment where they are added to the arrayList (lines 59-68).
Complete all of the stub methods and fill in the comments.
The UML diagram for the application is attached below. Sample output is in a separate file.
Complete the application and submit your jar file. Name it (and the package) dwolffjtunes (w/your name instead of mine).
G PlayList G Produer a name: String code String PlaLstString ArrayList Product) toStringo string rating: In Producto 0tostring0 String getName(0 String seame(String)vold toStringf0-String se PlayList(ArraList-Product>) old setRaring(int) vold o gercooeo-String se(String)vold geDescriptiongStrig G Movile a dlrector: string Moter) ogeReleaseDateo Day G AudioBook netNum It a autnor. String oStringFO String song 5AudloBook(String.double,int.Da,String String) nextNum Int songo Song(String.oouble.Int Day String String) bostring0 String seDirector(String)vold toString0 String oStringFO String F Song(String coudle It DayString) getAutmoro String sAmor(String)vold bostringFo String geAtis:0 String seArtsString)vold G PlayList G Produer a name: String code String PlaLstString ArrayList Product) toStringo string rating: In Producto 0tostring0 String getName(0 String seame(String)vold toStringf0-String se PlayList(ArraList-Product>) old setRaring(int) vold o gercooeo-String se(String)vold geDescriptiongStrig G Movile a dlrector: string Moter) ogeReleaseDateo Day G AudioBook netNum It a autnor. String oStringFO String song 5AudloBook(String.double,int.Da,String String) nextNum Int songo Song(String.oouble.Int Day String String) bostring0 String seDirector(String)vold toString0 String oStringFO String F Song(String coudle It DayString) getAutmoro String sAmor(String)vold bostringFo String geAtis:0 String seArtsString)voldStep 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