Question: Arrays in Java Create a data set of 4 movies and assign a random number of Year ( the range of the year would be

Arrays in Java

Create a data set of 4 movies and assign a random number of Year ( the range of the year would be 1920 to 2017), and Genre (choosing from Comedy, Drama, Sci-Fi and make sure there are no more than 2 movies in any category) for each of the movies. Use a separate class to create the movie objects. All the movie objects must be stored using an array. You can use additional arrays as necessary. The sorting code must be included as part of the project.

Create a menu based (no GUI) program with the following options:

1.List all the movies 2. Display the movies sorted according to year, starting with the oldest one 3. Sort the movies according to ratings, starting with the highest rating 4. Ask user for a genre, and display all the movies belonging to that specific genre 5. Search for a specific movie by name, and display all the details if the movies exists 6. Add a movie to the list of movies (ask the user for all the details) 7. Exit

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!