The following program skeleton, when complete, asks the user to enter the following information about his or her favorite movie:
Name of the movie
Name of the movie’s director
The year the movie was released
Complete the program by declaring the structure that holds this information, defining
a structure variable, and writing the required individual statements.
#include <iostream>
#include <string>
using namespace std;
// Write the structure declaration to hold the movie information.
int main()
{
// Define the structure variable here.
cout << "Enter the following information about your "
<< " favorite movie.\n" << "Name: ";
// Write a statement here that lets the user enter a movie name.
// Store it in the appropriate structure member.
cout << "Director: ";
// Write a statement here that lets the user enter the director's
// name. Store it in the appropriate structure member.
cout << "Year of Release: ";
// Write a statement here that lets the user enter the movie
// release year. Store it in the appropriate structure member.
cout << "\nHere is information on your favorite movie:\n";
// Write statements here that display the information
// just entered into the structure variable.
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.