Question: Code a class called Movie with three instance variables. String title, boolean restricted, String customer _ reviews. The class is required to be complete with
Code a class called Movie with three instance variables. String title, boolean restricted, String customerreviews. The class is required to be complete with a default constructor, a custom constructor, a set method for each instance variable, a get method for each instance variable and a toString method.
Develop a tester class with a main method that
reads values from a text file called movies.txt and uses the values to instantiate objects of your Movie class and add them to an array list. Hint: Each object would hold values: a movie title, a boolean flag that's true if the movie is restricted and false otherwise, and a one or more customer reviews.
presents the user with a menu that shows the list of Movie objects and then allows the user to add a movie to the list add a review to an existing movie save the list of movies Exit.
Hints:
Validate your inputs and catch and handle your exceptions. You may be creative with how you want to implement the list of reviews. Consider adding star rating value as a th instance variable.
Menu options
Option Asks the user to key in the values they want for title, restricted and customerreviews, and then uses these values to instantiate a Movie object to be added to the list. And then takes the user back to the menu options.
Option You choose how to enable the user to select a movie, and then generate a string holding any olds review, plus the review that the user wants to key in This option then updates the reviews of the selected Movie object, and then takes the user back to the menu options.
Option saves the array list back out to the file without corrupting the structure of the file, so you can start your program again and pick up where you left off with your list of movies and reviews. And then takes the user back to the menu options.
Option asks the user if they want to save the list of movies. If the user chooses to save the list, save it as you would for option and then exit the program. Exit without saying otherwise
Rubric
points Class Movie
Has the required instance variable and methods correctly implemented.
points @ points each Tester class
Correctly implements Reading from a text file.
Correctly implements Option
Correctly implements Option
Correctly implements Option
Correctly implements Option
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
