Write a program that uses a class named MovieData to store the following informa
ID: 3739198 • Letter: W
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).
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.
Explanation / Answer
Please find my implementation:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.