Question: Question 2 7 ( 1 0 points ) Using the Movie and Moviecollection classes from the previous problems, write a class called Buildcollection with a

Question 27(10 points)
Using the Movie and Moviecollection classes from the previous problems, write a class called Buildcollection with a ma in function that does the following:
Prompt the user for the maximum number of movies in the callection
Create a Moviecollection object using this number.
Repeat the following until the user indicates they are done entering data:
Prompt for the title, director, and year of a movie.
Create a Movie object using this information.
Add the Hovie object to the collection.
If a ToolManyMoviesexception is thrown, display a message to the user that the collection is full.
Ask the user if they want to enter another movie.
Display the collection.
Question 2 7 ( 1 0 points ) Using the Movie and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!