Question: 1) Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running time (in
1) Write a program that uses a structure named MovieData to store the following information about a movie:
Title
Director
Year Released
Running time (in minutes)
Include a function that allows all four of these member data values to be specified at the time a MovieData variable is created and which returns this variable. The program should create two MovieData variables and pass each one in turn to a function that displays the information about the movie in a clearly formatted manner. Pass the MovieData variables to the display function by value.
Your output should look like the following:
Enter information about first movie.
Enter the title: Inception
Enter the director's surname: Nolen
Enter the year the movie was released: 2010
Enter the running time (in minutes): 148
Enter information about second movie.
Enter the title: Goodfellas
Enter the director's surname: Scorsese
Enter the year the movie was released: 1990
Enter the running time (in minutes): 146
Movie Information
# Title Director Year Length (min)
1 Inception Nolen 2010 148
2 Goodfellas Scorsese 1990 146
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
