Question: 1. Movie Data Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running
| 1. 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
