Question: 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
Get step-by-step solutions from verified subject matter experts
