Question: Problem: You are asked to create a program for storing the catalog of movies at a DVD store using functions. The program should let the

Problem:
You are asked to create a program for storing the catalog of movies at a DVD store using functions. The program should let the user add, remove, sort, and output movies.
The main function is provided (you need to modify the code of the main function to call the user-defined functions described below).
The following user-defined functions are provided in the functions.h template file
printMenu:this function does not receive arguments and does not return a value. The function prints the options from the menu to STDOUT.
printMovieInfo:this function receives the following arguments:
A string representing the movie name.
An integer representing the year of the movie.
A string representing the movie genre.
The function prints the information about a movie (name, year, and genre) and does not return a value.
HINT:You may have to use this function in other functions.
You must write the definition and implementation of the following functions (in the functions.h template file):
1) findMovie:this function receives the following arguments:
A string representing the movie name.
A vector with the names of the movies in the catalog.
The function returns the index at which the movie name is located in the vector with the names of the movies in the catalog. If the movie is not in the catalog, the function must return -1.
HINT:You may have to use this function in other functions.
2) movieInfo:this function receives the following arguments:
A string representing the name of the movie to find in the catalog.
A vector with the names of the movies in the catalog.
A vector with the years of the movies in the catalog.
A vector with the genres of the movies in the catalog
If the movie is in the catalog, the function outputs the information about the movie using the output messages provided in the printMovieInfo function. If the movie is not found, then the function must print to STDOUT the following message:
cout << "Cannot find "<</*movie name identifier*/<< endl;
This function does not return a value.
HINT: You may have to call another function within this function.

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