Creates objects to store information about two films

Assignment Help Computer Engineering
Reference no: EM132196898

Question :

Write a C++ program:

A video shop needs to store information about the films it stocks. It has two types of film: video-cassettes and DVDs.

Create a Film class that has two public data members title (a char*) and length (an int). Next create two classes called Cassette and DVD that are both derived from Film.

The Cassette class should contain an extra public data member called condition (an enum type that can take the values perfect, good, average or poor).

The DVD class should contain an extra public data member called region (an int).

Both Cassette and DVD should have an extra public member function called Print that displays all data members.

Write a short main function that creates objects to store information about two films and then displays the information to the screen: "Titanic" (a DVD, 180 minutes long, region 1) and "Kezkaza Welafen" (a video cassette, 100 minutes long, good condition).

Reference no: EM132196898

Questions Cloud

What is socially optimal quantity of your oil consumption : What is the socially optimal quantity of your oil consumption? Briefly describe two government policies that achieve this level of consumption.
Write the c statements needed to dynamically allocate : Write all the C statements needed to define a new programmer defined type that contains a character string of up to 15 characters.
Diagram of test market study for the same research : MKT202 - Marketing Research Essentials - Assessment - Designing Data collection tools - Design a survey questionnaire using different types of scales, technique
Which offer would you advice the pitcher to accept : Suppose you are the agent for a baseball pitcher. Suppose he is offered the following contract by the New York Yankees: a signing bonus of $3,000,000.
Creates objects to store information about two films : The Cassette class should contain an extra public data member called condition (an enum type that can take the values perfect, good, average or poor).
Examine what is the change in total surplus : If the quantity supplied decreases by 100 sandwiches an hour at each price, what is the equilibrium price and what is the change in total surplus?
Company believes that every employee is different : Diversity components that my company currently implements is that company treats each employee as individual, company believes that every employee is different.
Read a floating point number representing degrees celsius : Write a program that prints out the binary, octal, decimal, and hexadecimal representation (respectively) of all unsigned shorts (in order).
Discuss in detail the concept of program inputs : Discuss in detail the concept of Program Inputs, Resources and Environment and relate it back to the subject matter of Policy Implementation and Evaluation.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a sequence of instruction that divide the number in bl

Write a short sequence of instruction that divides the number in BL by the number in CL, and then multiplies the result by 4.

  What are the components of a communication protocol

What are the components of a communication protocol? Describe frequency modulation, amplitude modulation, phase-shift modulation, and on-off keying.

  Write a static method that takes multiple formal parameters

Write a static method that takes multiple formal parameters. Invoke a static method that takes multiple actual parameters.

  Analze the letter grade the student has earned

suppose the full score for each assignment is 100. Student will get 0 for each unsubmitted assignment.

  Explain the steps you would take to mold a group

Explain the steps you would take, and the techniques you would use, to mold a group of individuals into a team. Justify your response.

  Why is it difficult to integrate it and medicine

In your opinion, should all HIMS implement a "integrated management" approach? (Why or Why Not?)

  What would be the error of the training set

If we used the above k-NN algorithm to score the training data, what would be the error of the training set? What is the best k? What does it mean?

  Create two function in c++ with using arrays

create two function in C++ with using arrays.

  Write down a program to test class rectangle

make a class Rectangle. The class has attributes length and width, each of which defaults to 1. It has methods that calculate the perimeter and the area of the rectangle

  Find out the occurrences of three consecutive characters

Find out the occurrences of three consecutive and identical word characters (like aaa or bbb) using grep and sed.

  What are the differences between sds and gon

What are the differences between SDs and GON? White a program in your favorite language corresponding to The decorated tree.

  How many bits are delivered to the network layer protocol

How many bits, including headers, are delivered to the network layer protocol at the destination?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd