Question: Movie.genreToName returns a string version of a genre code based upon the Movie.GENRES array. Thus a code of 5 should return the string zombie. Movie.genresMenu

Movie.genreToName
returns a string version of a genre code based upon the Movie.GENRES array. Thus a code of 5 should return the string zombie.
Movie.genresMenu
returns a string that contains all of the Movie genre names, formatted like:
0: science fiction 1: fantasy 2: drama ...10: mystery
Movie.toString
returns a string that provides a formatted version of a Movie object. It requires the use of the genreToName method to convert a Movie genre code to a string. A formatted example:
Title: Dellamorte Dellamore Year: 1994 Director: Michele Soavi Rating: 7.2 Genre: zombie

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 Programming Questions!