Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Use Java and ONLY DO OPTIONS 5,6,7. Thank you! 1. Create a data set of 30 movies 2. Assign names to each of the

Please Use Java and ONLY DO OPTIONS 5,6,7. Thank you!

image text in transcribed

1. Create a data set of 30 movies 2. Assign names to each of the 30 movies (you can use actual movie names, or Moviel, Movie2, Movie30 3. Assign a random year to each of the movies (the range of the year would be 1920 to 2017), such that there is no more than one movie in a vear 4. Assign a random running time to each of the movies (the range would be 60 to 200 minutes) 5. Assign a genre to each movie choosing from one of the following: Comedy, Drama, Sci-Fi, Action, Documentary; make sure there are no more than 10 movies in any category 6. Assign a random rating to each movie (range 0.1 to 10.0) 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 program with the following options 1. List all the movi 2. Display the movies sorted according to year, starting with the oldest one 3. Sort the movies according to running time, starting with the shortest 4. Sort the movies according to ratings, starting with the highest rating 5. Ask user for a genre, and display all the movies belonging to that specific genre 6. Search for a specific movie by name, and display all the details if the movies exists 7. Add a movie to the list of movies (ask the user for all the details) 8. Exit The program continues to execute until the user selects option to "Exit". The user is allowed to add a maximum of 5 movies

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago