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

  How a simple backward chaining interpreter could be used

Describe how a simple backward chaining interpreter could be used to go through the possible diagnoses, asking the user questions about their symptoms.

  How the technology will allow the data request

You are the network engineer contracted to establish a WAN connectivity between two office locations for a local corporation. The main corporate headquarters.

  What is the difference between an algorithm and a program

What is the difference between an algorithm and a program? How can computers represent pictures as numbers? How can computers represent text as numbers?

  Find the matrix using the assembly language

Find the matrix using the assembly language

  Write a function of f - flop balance

Write a function f - FlopBalance(n,p) that returns a p-vector I with the property that II-' is the number of flops that Procuz) must perform in shared.

  Who should claim lead authorship in this scenario

The original research idea is yours, but you let your co-authors handle the data collection and actual writing of the report.

  Write down a code segment that will examine a numeric value

write a code segment that will analyze a numeric value provided by the user to determine if he or she is short average

  What is the rest balance at the end of one year

A student borrows 3,000 at an interest rate of 2 % per month on the unpaid balance. If the student pays $200 at the end of each month, what will be the remaining balance at the end of one year.

  Write a c program for a mini calculator

Write a C program for a mini calculator using only the command line options. You must use getopt to parse the command line.

  Assingment 1 social media crm historyusing your book and

assingment 1 social media crm historyusing your book and many outside resources research the history of the use of

  How will you copy a directory structure bar-one to bar-two

How will you copy a directory structure bar1 to bar2? Does it make any difference if bar2 exists?

  When you viewed the verbal and the nonverbal together

for this project use the concepts in units 5 and 6 and your own observations to identify the roles of verbal and

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