Question: Challenge c++ Implement another method in the MovieDatabase class that accepts a movie title as a string argument, and searches the array of movies for

Challenge c++

Implement another method in the MovieDatabase class that accepts a movie title as a string argument, and searches the array of movies for a match. You can use a technique called a Linear Search for this start at the first element in the array, and compare the title of that movie to the desired title. If you find a match, call the display function for that movie to print out the data, and then exit the search. If you dont find a match, iterate to the next movie in the array and try again, until you either find a match or run out of movies to check (its not efficient, but it works). If no match is found, you should display an error message indicating such.

In the main, you should update your menu to allow the user to use your new search method.

collectiions using object composition

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 Databases Questions!