(Solved) : Use Java Please Write Movie Management System Using Object Oriented Design Principles Prog Q43910988 . . .
(Only Use Java Please)Write a movie management system usingobject-oriented design principles. The program will read from thesupplied data file into a single array list. The data file(movies.txt) contains information about the movies. Each movierecord has the following attributes:
- Duration (in minutes)
- Title
- Year of release
Each record in the movies.txt file is formatted as follows:
- Duration,Title,Year
- e.g.: 91,Gravity,2013
Specifically, you have to create an interactive menu drivenapplication that gives the user the following options:
- Add a new movie and save.
- The user will be prompted to enter the duration in minutes,title of the new movie, and the year the movie was released. Beforethe movie is added, the inputs provided by the user should bevalidated:
- The duration and year of the movie should not be zero and thetitle of the movie should not be empty.
- When you add a new movie, the program should update the datafile by saving the new movie at the end of the movie list.
- The user will be prompted to enter the duration in minutes,title of the new movie, and the year the movie was released. Beforethe movie is added, the inputs provided by the user should bevalidated:
- Generate list of movies released in a year.
- The user will input a year and the program will display a listof all the movies released in that year along with the duration (inminutes) of all the movies.
- The list of movies does not have to be sorted.
- Generate list of random movies.
- The user will input the number of movies and the program willdisplay a list containing the amount of random movies along withthe duration (in minutes) of all the movies.
- There is no minimum or maximum duration for the movies in thelist.
- You can use Collections.shuffle in thejava.utils package to randomize the movie list.
- Exit the program.
- Save the list of movies back into the data file “movies.txt”using the above format (Duration,Title,Year).
Expert Answer
Answer to (Only Use Java Please)Write a movie management system using object-oriented design principles. The program will read fro…
OR