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

  What type of input file will make radix-exchange sort run

How much memory is required to do a four-pass straight radix sort of N b-bit keys? What type of input file will make radix-exchange sort run the most slowly?

  What sorts of issues will need to be considered

To improve performance, your company has decided to replicate its product database across several servers so that not all transactions go through a single system. What sorts of issues will need to be considered?

  Answer the question on examples

Q1. Suppose a jogger wants to use her ten fingers to count laps as she circles a track. Each finger can be in two different states to represent a binary digital. How many laps can she conveniently count? Briefly justify your answer.

  Simulate the tossing of two dice a large number of times

Write a C++ program to simulate the tossing of 2 dice a large number of times.

  Write the program with at least two functions to solve

Write the program with at least two functions to solve the following problem.

  What is oracle administration documentations

What is oracle administration documentations

  Generate a 16 dimensional codebook of size 64

Generate a 16-dimensional codebook of size 64 for the Sena image. Construct the vector as a 4 x 4 block of pixels, an 8 x 2 block of pixels, and a 16 x 1 block of pixels.

  Obtain a histogram of the image

Obtain a histogram of the image, and using the fact that the quantized image should be as good an approximation as possible for the original, design 1-, 2-, and 3-bit quantizers for this image.

  What are the contents of the a register after the execution

What are the contents of the A register after the execution of this instruction? XXXX=XXX XXXXXXXX XXXXXX== and XXXX=XX= XXXXXXXX XXXXXX==.

  Create a second class to test your park class

Create a Park class. Include data members such as name of park, location, type of facility. Create a second class to test your Park class.

  Discuss use of binary tree when searching for keys in array

Discuss the use of a binary tree when searching for keys in an array. Discuss the use of a binary tree when searching for keys in a linked list.

  What are the technology benefits

What are your thoughts about statements made by some industry professionals that this technology should be freely available to other engine manufactures.

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