Question: This term we will be writing programs and functions related to running a Movie database, working with information about movies, their titles, genres, etc. For

This term we will be writing programs and functions related to running a Movie database, working with information about movies, their titles, genres, etc.

For these tasks use the Movie class on the basis of the information given in the Movie.py (Movie class) module and the Movie_utilities.py (Movie utilities) module. Import these modules into another file for testing - do not put test code into Movie.py or Movie_utilities.py modules.

  1. Movie genres represent the various categories that movies can belong to. A movie could be a comedy, a romance, a zombie film, or a romantic zombie comedy. The Movie class defines a constant tuple of genre names called GENRES . The genres for each Movie object is stored as a list of integer indexes for the GENRES constant. Thus a romantic zombie comedy would have its genres stored as [3,4,5]. This list of integers must be converted to a string for display purposes.

    For example, the movie Dellamorte, Dellamore has the genre list [3,4,5,8] . It prints out as:

    Title: Dellamorte Dellamore Year: 1994 Director: Michele Soavi Rating: 7.2 Genres: romance, comedy, zombie, horror 

    Complete the genres_string method for the Movie class.

Movie.py:

https://bohr.wlu.ca/cp164/labs/lab01/Movie.txt 

Movie_Utilities.py

https://bohr.wlu.ca/cp164/labs/lab01/Movie_utilities.txt 

movies.txt

Dellamorte Dellamore|1994|Michele Soavi|7.2|3,4,5,8 Dark City|1998|Alex Proyas|7.8|0 Zulu|1964|Cy Endfield|7.8|9 I Am Legend|2007|Francis Lawrence|7.1|0,6 Omega Man, The|1971|Boris Sagal|6.6|0,6 Last Man On Earth, The|1964|Ubaldo Ragona|6.9|0 Alphaville|1965|Jean-Luc Godard|7.1|0,4 Stardust|2007|Matthew Vaughn|7.7|1,4 Juno|2007|Jason Reitman|7.7|3,4 Darjeeling Limited, The|2007|Wes Anderson|7.1|4 Broken Flowers|2005|Jim Jarmusch|7.2|3,4 Star Wars: Episode IV - A New Hope|1977|George Lucas|8.7|0,6 Horror of Dracula|1958|Terence Fisher|7.4|8 Jason and the Argonauts|1963|Don Chaffey|7.4|1,6 Wrong Box, The|1966|Bryan Forbes|7.0|4 Finding Dory|2016|Andrew Stanton, Angus MacLane|7.5|4 Manos: The Hands of Fate|1966|Harold P. Warren|1.9|8 Incredibly Strange Creatures Who Stopped Living and Became Mixed-Up Zombies!!?, The|1964|Ray Dennis Steckler|2.2|8 Z|1969|Costa-Gavras|8.2|2 Wonder Woman|2017|Patty Jenkins|8.1|1,6 Zulu|2013|Jerome Salle|6.7|2

What specifically do you need more details on, also are the links working for you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!