Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing this program for java! 2 classes need to be made, thank you! :) Requirements for skeleton of Movie and Festival Festival

I need help writing this program for java! 2 classes need to be made, thank you! :) image text in transcribed
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

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

More Books

Students also viewed these Databases questions