Question: Movie Data Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running Time

Movie Data
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)
The program should create two MovieData variables, store values in their members,
and pass each one, in turn, to a function that displays the information about the movie
in a clearly formatted manner.
2. Movie Profit
Modify the Movie Data program written for Programming Challenge 1 to include two
additional members that hold the movies production costs and first-year revenues.
Modify the function that displays the movie data to display the title, director, release
year, running time, and first years profit or loss.
Design a class named MovieData that holds four attributes:
Define one attribute called title of char * data type
Define one attribute called director of char * data type
Define a one attribute called yearRealease of int data type.
Define one attribute called runningTime of floating-point type.
Define one attribute called productionCost of floating-point type.
Define one attribute called revenues of floating-point type. Programming langua is C ++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!