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 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
How does the use of e-mail benefit business communications? it can be sent at any time. it is faster than regular mail. it improves writing skills. it is less expensive than using a courier. it reduces the need for proofreading.
Answers: 1
You know the right answer?
Descriptionfor this assignment you will write a program to simulate a media library. we will work wi...
Questions
Questions on the website: 13722367