Question: Write a program that uses a class named MovieData to store the following information about a movie: Title, Director, Year Released, Running Time (in minutes).
Write a program that uses a class named MovieData to store the following information about a movie:
Title, Director, Year Released, Running Time (in minutes).
Include a constructor that allows all four of these member data values to be specified at the time a MovieData variable is created.
The program should create two MovieData variables.
Have a stand alone function that displays the information about the movie in a clearly formatted manner.
Run and test the program at this point.
Now include two additional attributes that hold the movie's production costs and revenues.
Change from original requirements below.
Add a second constructor so that all six member values can be specified when a MovieData variable is created.
Copy the display function that displays the movie data to create a second function that displays the title, director, release year, running time, and production costs and revenues .
Use the second constructor and second display function in a third MovieData variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
