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.

  1. Design a class named MovieData that holds four attributes:
  2. Define one attribute called title of char * data type
  3. Define one attribute called director of char * data type
  4. Define a one attribute called yearRealease of int data type.
  5. Define one attribute called runningTime of floating-point type.
  6. Define one attribute called productionCost of floating-point type.
  7. Define one attribute called revenues of floating-point type.

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!