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, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
True or false: a power supply is an electrical transformer that regulates the electricity used by the computer.
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, 09.11.2020 19:20
question
Mathematics, 09.11.2020 19:20
question
Mathematics, 09.11.2020 19:20
question
Mathematics, 09.11.2020 19:20
question
Arts, 09.11.2020 19:20
question
Chemistry, 09.11.2020 19:20
question
Mathematics, 09.11.2020 19:20