Question: Task 1 (A) Write a program that uses a class named Movie Data to store the following information about a movie: Title Director Year Released

 Task 1 (A) Write a program that uses a class namedMovie Data to store the following information about a movie: Title Director

Task 1 (A) Write a program that uses a class named Movie Data to store the following information about a movie: Title Director Year Released Running time (in minutes) Include a constructor that allows all four of these member data values to be specified at the time a Movie Data variable is created. The program should create two MovieData variables and pass each one in turn to a function that displays the information about the movie in a clearly formatted manner. (B) Modify the Movie Data program written for Programming Challenge 1 to include two additional members that hold the movie's production costs and first-year revenues. The constructor should be modified so that all six member values can be specified when a Movie Data variable is created. Modify the function that displays the movie data to display the title, director, release year, running time, and first year's profit or loss. Task 2 Create a class of employee, which includes four data members as name, age, salary, and designation. Write a program that creates an array of objects (class employee) to implement list of employees. For output show, add record of 10 employees and find the maximum salary and name of that employee. Task 3 Create a class square in which take a data member length. Write main() that create two objects of square and assign value to first object to second object (use of copy constructor). Calculate are of square for both objects. Task 4 Design a class Numbers that can be used to translate whole dollar amounts in the range 0 through 9999 into an English description of the number. For example, the number 713 would be translated into the string seven hundred thirteen, and 8203 would be translated into eight thousand two hundred three. The class should have a single integer member variable int number; and a collection of static string members that specify how to translate key dollar amounts into the desired format. For example, you might use static strings such as string lessThan20[ ] = {"zero", "one", ..., "eighteen", "nineteen" }; string hundred = "hundred"; string thousand = "thousand"; The class should have a constructor that accepts a nonnegative integer and uses it to initialize the Numbers object. It should have a member function print() that prints the English description of the Numbers object. Demonstrate the class by writing a main program that asks the user to enter a number in the proper range and then prints out its English description

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!