Question: I need help writing this program for java! 2 classes need to be made, thank you! :) Requirements for skeleton of Movie and Festival Festival
Requirements for skeleton of Movie and Festival Festival Movie title: String rating: int 1: argments: title, rating 2: copy constructor title and rating title and rating Instance Variables name: String movieList: ArrayListcMovie> 1. arguments: name name and movieList Getters Setters Methods getCategory(): void addMovie(Movie): void Additional Requirements for Movie Class Title: The instance should always store the string in all upper case, if the method is called with a string that contains any lower case characters, the lower case characters should be converted to upper case Rating must be a value between 0 and 10 (inclusive). If the rating provided is outside of that range, the rating should remain unchanged getCategory: A movie is considered A category if its rating is 9 or 10, B category if the rating is 7 or 8, C category if the rating is 5 or 6, D category if the rating is 3 or 4 and F category otherwise Additional Requirements for Festival Class Al instance variables must be completely encapsulated. There should be no privacy leaks. - getMovieWithLowestRating returns the movie in movieList that has the lowest rating. If the list is empty, this method will return null. Don't forget to import java.utiLArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
