Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).

image text in transcribed

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)vold

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

c. How is trust demonstrated?

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago