Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions