Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

publishing company

  Asked By: Es    Date: Jan 23    Category: C++ Programming    Views: 638
  

Imagine a publishing company that markets both book and audiocassette version to its works .create a class publication that stores the title (a string) and price (type float ) of a publication from this class derive two classes :which adds a page count (type int);and tape ,which adds a playing time in minutes (type float)each of these three classes should have a get data( )function to gets data from the user and a put data ( )function to display data .write a main ( ) program in C++ to test the book and tape classes by creating instances of then asking the user to fill in data with get data( )and then displaying the data with put data( ).

Share: 



Tagged: