[Solved]Description Assignment Write Program Simulate Media Library Work Three Types Media Picture Q37252472
Description
For this assignment you will write a program to simulate a medialibrary. We will work with three types of media: pictures, music,and movies. Your job is to design and implement a class hierarchyconsisting of the Media, Picture, Song, and Movie classes, asdescribed below.
Specification for the classes:
Media Class
A Media object has a media type, a name, and a rating. Therating is an integer number. You need to implement the __init__,getter, and setter methods as needed. This class should overloadthe __str__ or __repr__ methods so that Media objects can bedisplayed using the print() function.
Song Class
A Song is a kind of Media that has an artist and an album. Thisclass has a play() method that will simulate the task of playing asong (you can do something simple as printing something like: ‘>by >, playing now’. The Song class should override the __str__(or __repr__) method of Media. Make sure you also implement anyother methods (such as __init__, getters, and setters) as needed bySong. You should be able to use the __str__ __ (or __repr__)methodin a script to show all the song information, including media type,name, rating, artist, and album.
Picture Class
A Picture is a kind of Media that has a resolution. Theresolution of a picture is an integer number that measures the dotsper inch (the minimum resolution of any picture should be 200 dpi).This class has a show() method that will simulate the task ofdisplaying a picture (you can do something simple as printing:‘Showing >’. The Picture class should override the __str__ __(or __repr__) method of Media. Make sure you also implement anyother methods (such as __init__, getters, and setters) as needed byPicture. You should be able to use the __str__ __ (or__repr__)method in a script to show all the picture information,including media type, name, rating, and resolution.
Script
Your script will simulate a media library. You should have alist of Media that stores at least 12 different objects. Your listshould have a mix of Song, Movie, and Picture objects. You willprovide the information for each media object when you populate thelist.
Your program should have a menu that allows the user to performthe 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 Songis found play it. If not, display a message indicating that theSong is not in the media library.
• Play a Movie: the user enters the name of the Movie. If theMovie is found play it. If not, display a message indicating thatthe Movie is not in the media library.
• Display a Picture: the user enters the Picture. If the Pictureis found display it. If not, display a message indicating that thePicture is not in the media library.
• Quit the program
You will need a loop to show and process the menu until the userchooses to quit/exit the program.
This is for python and do not forget to ask the users for inputsand loop the inputs
Expert Answer
Answer to Description For this assignment you will write a program to simulate a media library. We will work with three types of m… . . .
OR

