Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ 1.Change the challenge program #2 to a class 2. Change the Title and Director attributes to dynamic memory 3.Constructor with initialization argument 4.Function

In C++

1.Change the challenge program #2 to a class

2. Change the Title and Director attributes to dynamic memory

3.Constructor with initialization argument

4.Function with Destructor member

5.Function Copy Constructor

6.Function that prints the instance content.Add the format to two significant numbers.

7.Mutators functions.Validate that production costs and profits are positive.

8.Accesors members functions.

9.Implement the assign operator to return nothing.

10.Implement the Input/Output operator.

11.Create a dynamic instance on the main program.

12. Use three archives in the program, .h .cpp and main

Use Tonny Gaddis Program Challenge 2. Movie Profit, page.651, Chap. 11 to do all this.

Programming Challenge one(necessary to make the program challenge #2)

1. Movie Data

Write a program that uses a structure named MovieData to store the following infor- mation 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.

Programming challenge #2

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.

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions