The following program skeleton, when complete, asks the user to enter these data about his or her favorite movie:
Name of movie
Name of the movie’s director
Name of the movie’s producer
The year the movie was released
Complete the program by declaring the structure that holds this data, defining a structure variable, and writing the individual statements necessary.
#include
using namespace std;// Write the structure declaration here to hold the movie data.int main(){ // define the structure variable here. cout ≪ "Enter the following data about your\n"; cout ≪ "favorite movie.\n"; cout ≪ "name: "; // Write a statement here that lets the user enter the // name of a favorite movie. Store the name in the // structure variable. cout ≪ "Director: "; // Write a statement here that lets the user enter the // name of the movie's director. Store the name in the // structure variable. cout ≪ "Producer: "; // Write a statement here that lets the user enter the // name of the movie's producer. Store the name in the // structure variable. cout ≪ "Year of release: "; // Write a statement here that lets the user enter the // year the movie was released. Store the year in the // structure variable. cout ≪ "Here is data on your favorite movie:\n"; // Write statements here that display the data. // 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.