Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Java I need to write a program that takes in the users input. I am really uns

ID: 3530484 • Letter: I

Question

In Java I need to write a program that takes in the users input. I am really unsure of how to start. The problem is- You have a sizable collection of music and videos and want to develop a database for storing and processing information about this collection. You need to develop a class hierarchy for your media collection that will be helpful in designing the database. The classes Media, Audio and Video would be abstract classes as one would not instantiate objects of those types. The class Artist is used to describe artists of any kind from producers, directors, band members or movie actors. While is?a inheritance is should through the specialization hierarchy of Media, Audio, Video, Cassettes, Cd, DVD, VHS; has?a relationship is shown through the class Artist with Media, Audio, and Video all having Artists as data members. It might be necessary to create other methods for any of the classes. The toString methods should return a String containing all of the data members for the particular media. The playMedia methods should display Now playing: followed by the media

Explanation / Answer

Your question is not clear so far.....

---------------------------------------------------------


the above post of mine shows the class diagram.

and the classes can be written as....

------------------------------------------------------------------

Media class

-----------------------------------------

package movie;


public abstract class Media {


String title;

String majorArtist;

int playingTime;

int numPlays;

public void playMedia()

{

}

public void incrementPlays()

{

}

public void setYourRating()

{

}

public void getPlayingTime()

{

}

public String toString()

{

return null;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote