subject

Descriptionfor this assignment you will write a program to simulate a media library. we will work with three types of media: pictures, music, and movies. your job is to design and implement a class hierarchy consisting of the media, picture, song, and movie classes, as described below. specification for the classes: media classa media object has a media type, a name, and a rating. the rating is an integer number. you need to implement the getter, and setter methods as needed. this class should overload the __str__ or __repr__ methods so that media objects can be displayed using the print() function. song classa song is a kind of media that has an artist and an album. this class has a play() method that will simulate the task of playing a song (you can do something simple as printing something like: ‘> by > , playing now’. the song class should override the __str__ (or method of media. make sure you also implement any other methods (such as getters, and setters) as needed by song. you should be able to use the __str__ __ (or in a script to show all the song information, including media type, name, rating, artist, and album. picture classa picture is a kind of media that has a resolution. the resolution of a picture is an integer number that measures the dots per inch (the minimum resolution of any picture should be 200 dpi). this class has a show() method that will simulate the task of displaying a picture (you can do something simple as printing: ‘showing > ’. the picture class should override the __str__ __ (or method of media. make sure you also implement any other methods (such as getters, and setters) as needed by picture. you should be able to use the __str__ __ (or in a script to show all the picture information, including media type, name, rating, and resolution. scriptyour script will simulate a media library. you should have a list of media that stores at least 12 different objects. your list should have a mix of song, movie, and picture objects. you will provide the information for each media object when you populate the list. your program should have a menu that allows the user to perform the following actions: • display all items in the media library• display only the song objects• display only the movie objects• display only the picture objects• play a song: the user enters the name of the song. if the song is found play it. if not, display a message indicating that the song is not in the media library.• play a movie: the user enters the name of the movie. if the movie is found play it. if not, display a message indicating that the movie is not in the media library.• display a picture: the user enters the picture. if the picture is found display it. if not, display a message indicating that the picture is not in the media library.• quit the programyou will need a loop to show and process the menu until the user chooses to quit/exit the program. this is for python and do not forget to ask the users for inputs and loop the inputs

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
You know the right answer?
Descriptionfor this assignment you will write a program to simulate a media library. we will work wi...
Questions
question
Mathematics, 08.09.2020 06:01
question
Computers and Technology, 08.09.2020 06:01
question
Mathematics, 08.09.2020 06:01
Questions on the website: 13722363