Question: In this application, you will create a dynamic array to store movie data, sort the movies, and allow the user to search for the director



In this application, you will create a dynamic array to store movie data, sort the movies, and allow the user to search for the director of the movie using the name of the movie Movie (-) name string (- director: string (+) Movie() (+) Movie n : string, d: string) (+) setName n : string): void (+) setDirector( d: string): void (+) getName): string (+) getDirector(): string Develop a class called Movie with two private members: the name of the movie and the name of the director. Include parameterless and overloaded constructors. For the parameterless (default) constructor, initialize the private members using string literals, for example "N/A". Include get and set functions. void DisplayData( Movie datall, int size ); Write a function that will display the names of all the movies stored in the array void BubbleSort( Movie datall, int size ); Write a function to sort the movies by name in ascending order. The temp variable should be a Movie datatype, and the function should swap the movie objects in the array based on the name of the movies. The movie names can be compared using the getName function Example: if data[x.getName()>datax 1].getName()) int BinarySearch( Movie datall, int size, string searchValue); Write a function to search the array of movies using the name of the movie and return the position of the movie if it is found and-1 if it is not. The searchValue is the name of the movie, and it will be entered by the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
