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, 21.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 21.06.2019 18:30
Which number on the image above correctly indicates the name of a folder in this url? a.1b.2c.3d.4
Answers: 2
question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
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
question
Mathematics, 04.05.2020 23:58
question
Computers and Technology, 04.05.2020 23:58
question
Mathematics, 04.05.2020 23:58