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.
Movie Profit
Modify the Movie Data program written for Programming Challenge to include two
additional members that hold the movies production costs and firstyear 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 floatingpoint type.
Define one attribute called productionCost of floatingpoint type.
Define one attribute called revenues of floatingpoint type. Programming langua is C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
