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, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
What are some websites that you can read manga (ex: manga rock)
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, 27.11.2019 09:31
question
Mathematics, 27.11.2019 09:31
question
History, 27.11.2019 09:31
Questions on the website: 13722363